Skip to content

CSS named color

PapayaWhip #FFEFD5

PapayaWhip (CSS keyword papayawhip) has the hex code #FFEFD5 and the RGB value rgb(255, 239, 213): an off-white with a beige tint.

PapayaWhip#FFEFD5

A pale cream with a peach tint (#ffefd5); the name evokes a whipped papaya dessert. It is a little lighter than blanchedalmond and bisque.

Color codes for PapayaWhip

Color codes for PapayaWhip
CSS keywordpapayawhip
HEX#FFEFD5
RGBrgb(255, 239, 213)
HSLhsl(37, 100%, 92%)
HWBhwb(37 84% 0%)
OKLCHoklch(95.8% 0.038 80)
CMYK (naive, no ICC profile)cmyk(0%, 6%, 16%, 0%)
Decimal16,773,077
Hue familyYellows

Contrast and accessibility

On papayawhip, black text has a contrast ratio of 18.55:1 and passes AAA at any text size; white text reaches 1.13:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on papayawhip18.55:1PassPassPassPass97.6
White text on papayawhip1.13:1FailFailFailFail0.0
Papayawhip text on white1.13:1FailFailFailFail0.0
Papayawhip text on black18.55:1PassPassPassPass−98.6

Tints and shades

Each step mixes papayawhip with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, papayawhip, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #fff0d7
  2. 15%
    #fff1db
  3. 25%
    #fff3e0
  4. 35%
    #fff5e4
  5. 45%
    #fff6e8
  6. 55%
    #fff8ec
  7. 65%
    #fff9f0
  8. 75%
    #fffbf5
  9. 85%
    #fffdf9
  10. 95%
    #fffefd

Shades (mixed with black)

  1. 5%
    #f2e3ca
  2. 15%
    #d9cbb5
  3. 25%
    #bfb3a0
  4. 35%
    #a69b8a
  5. 45%
    #8c8375
  6. 55%
    #736c60
  7. 65%
    #59544b
  8. 75%
    #403c35
  9. 85%
    #262420
  10. 95%
    #0d0c0b

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, papayawhip's complementary color is #E3F2FF (close to aliceblue), its analogous colors are #FFEADB and #F2F4D7, and its triadic partners are #D4FAFB and #FDE9FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#e3f2ff
Analogous−30°, +30°#ffeadb#f2f4d7
Triadic+120°, +240°#d4fafb#fde9ff
Split-complementary+150°, +210°#d8f7ff#f0edff

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

PapayaWhip is a warm color: its hue is 37° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
blanchedalmond#ffebcd1.2
antiquewhite#faebd71.4
beige#f5f5dc1.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
orange-100#ffedd40.5
amber-100#fef3c62.5
orange-50#fff7ed3.1

Code snippets

CSS
.element {
  color: papayawhip;
  background-color: #ffefd5;
  border-color: rgb(255 239 213);
  outline-color: oklch(95.8% 0.038 80);
}
Tailwind CSS
<div class="bg-[#ffefd5] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-papayawhip: #ffefd5;
}
/* then use bg-papayawhip, text-papayawhip, border-papayawhip */
SwiftUI
import SwiftUI

extension Color {
  static let papayawhip = Color(red: 1.000, green: 0.937, blue: 0.835)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Papayawhip = Color(0xFFFFEFD5)
Flutter
import 'package:flutter/material.dart';

const papayawhip = Color(0xFFFFEFD5);
Android XML
<!-- res/values/colors.xml -->
<color name="papayawhip">#FFEFD5</color>

Frequently asked questions

What is the hex code for papayawhip?
The hex code for papayawhip is #FFEFD5. The same color is rgb(255, 239, 213), hsl(37, 100%, 92%) and oklch(95.8% 0.038 80), and in CSS you can also write the keyword papayawhip directly.
Is papayawhip a warm or cool color?
PapayaWhip is a warm color: its hue is 37° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
What colors go with papayawhip?
Rotating the hue in OKLCH while keeping lightness and chroma, papayawhip's complementary color is #E3F2FF (close to aliceblue), its analogous colors are #FFEADB and #F2F4D7, and its triadic partners are #D4FAFB and #FDE9FF. For text on top, black gives the higher contrast.
Can you use white text on papayawhip?
White text on papayawhip has a contrast ratio of 1.13:1, which fails AA even for large text under WCAG 2.2. Black text reaches 18.55:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 97.6 for black.
What is the RGB value of papayawhip?
PapayaWhip is rgb(255, 239, 213): red 255, green 239 and blue 213 on the 0 to 255 scale, or 100.0%, 93.7% and 83.5%. As a decimal integer it is 16773077.

Last reviewed by Arielton Oberek.