CSS named color

Papaya Whip #FFEFD5

The CSS keyword papayawhip is #FFEFD5. It is a pale grayish amber in the yellow family. In OKLCH it sits at lightness 0.958, chroma 0.038 and hue 80.0°.

Relative luminance
0.8780
OKLCH L · C · h
0.958 · 0.038 · 80.0
Best text
Black 18.55:1
Hue family
Yellow

#FFEFD5 color codes

HEX
#FFEFD5
RGB
rgb(255, 239, 213)
HSL
hsl(37, 100%, 92%)
OKLCH
oklch(0.958 0.038 80.0)
OKLab
oklab(0.958 0.007 0.038)
CIELAB (D65)
L* 95.08, a* 1.27, b* 14.53
XYZ (D65)
X 84.12, Y 87.80, Z 75.45
CMYK (naive)
cmyk(0%, 6%, 16%, 0%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #FFEFD5 accessible?

Black text on it reaches 18.55:1, passing AAA. White text fails at 1.13:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    18.55:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +97
  • White text on it

    1.13:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.13:1

  • As text on black

    18.55:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −98
  • As text on white

    1.13:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.13:1

Nearest versions that pass 4.5:1

  • For text on white

    #81735C 4.62:1

    Darkening its OKLCH lightness from 0.96 to 0.56 reaches 4.62:1 on white, keeping the hue.

  • For text on black

    #FFEFD5 18.55:1

    It already reaches 18.55:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #FFEFD5 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #FFEFD5

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #FFEFD5 sits at step 50.

  1. 50This color#FFEFD5
    White
    1.13
    Black
    18.55
  2. 100#F6E9D4
    White
    1.19
    Black
    17.52
  3. 200#E3D6BF
    White
    1.43
    Black
    14.63
  4. 300#CABCA4
    White
    1.86
    Black
    11.24
  5. 400#AE9F88
    White
    2.58
    Black
    8.11
  6. 500#92846C
    White
    3.65
    Black
    5.73
  7. 600#7A6D56
    White
    5.06
    Black
    4.14
  8. 700#635640
    White
    7.15
    Black
    2.93
  9. 800#4A3E2A
    White
    10.42
    Black
    2.01
  10. 900#312716
    White
    14.66
    Black
    1.43
  11. 950#1D1406
    White
    18.18
    Black
    1.15

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #FFEFD5 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.038; #FFEFD5 uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.048 there: 25% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.038
sRGB edge
0.038
Display P3 edge
0.048
Rec. 2020 edge
0.074
Dominant wavelength
578 nm
Excitation purity
15%
Chromaticity
x 0.3400, y 0.3549
  • This color#FFEFD5
  • Most vivid in sRGB#FFEFD5
  • Most vivid in Display P3oklch(0.958 0.048 80.0)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #ffefd5;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 1 0.9377 0.8214); }
}

Mixing

Mixing #FFEFD5

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#FFF7EA
  • OKLab50%#FFF7EA
  • OKLCH50%#FFF7EA

Black #000000

  • sRGB50%#80786B
  • OKLab50%#635C51
  • OKLCH50%#635C51

Its complement #EAF2FF

  • sRGB50%#F5F1EA
  • OKLab50%#F5F1EA
  • OKLCH50%#FFEBF3
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #ffefd5, white);
color: color-mix(in oklch, #ffefd5 50%, white);

In use

#FFEFD5 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:118.55:1 Passes
  • Link and body-size textText, 4.5:11.13:1 Fails
  • Large headingLarge text, 3:11.13:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.13:1 Fails

For text on this page, the nearest shade that passes is #81735C 4.62:1

Dark page

  • Button labelText, 4.5:118.55:1 Passes
  • Link and body-size textText, 4.5:116.55:1 Passes
  • Large headingLarge text, 3:116.55:1 Passes
  • Icons, borders and focus ringsNon-text, 3:116.55:1 Passes

Color vision

How #FFEFD5 looks with color blindness

Tritanopia changes it most, ΔE2000 11.9; protanopia changes it least, 4.4.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #F6EFD3 ΔE2000 4.4

    Close match

    Reads as pale grayish amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #FAF3D6 ΔE2000 4.5

    Close match

    Reads as pale grayish amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #FFEAE8 ΔE2000 11.9

    Distinct

    Reads as pale grayish red

  • Achromatopsia

    No cone color vision; lightness only

    #F1F1F1 ΔE2000 11.0

    Distinct

    Reads as off-white

Pairing check

Checked against its complement, #EAF2FF. Their lightness contrast is only 1.00:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#FFEFD5 · #EAF2FF17.4Stays distinct
Protanopia#F6EFD3 · #EEF2FF18.0Stays distinct
Deuteranopia#FAF3D6 · #ECF0FF19.2Stays distinct
Tritanopia#FFEAE8 · #E5F5F616.6Stays distinct
Achromatopsia#F1F1F1 · #F1F1F10.0Easily confused

Harmony

Color harmonies for #FFEFD5

Its complement is #EAF2FF, an off-white.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#FFEFD5
  • Complement#EAF2FF

Complementary

Open in Harmony Studio
  • −30°#FFEDE4
  • Base#FFEFD5
  • +30°#F2F4D7
  • Base#FFEFD5
  • +120°#D4FAFB
  • +240°#FBEBFF
  • Base#FFEFD5
  • +150°#E1F5FF
  • +210°#F0EFFF

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-papayawhip: #ffefd5;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        papayawhip: '#ffefd5',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-papayawhip: oklch(0.958 0.038 80.0);
}

Design token (W3C DTCG)

{
  "color": {
    "papayawhip": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [1, 0.9373, 0.8353],
        "hex": "#ffefd5"
      },
      "$description": "CSS named color papayawhip"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let papayawhip = Color(.sRGB, red: 1.000, green: 0.937, blue: 0.835, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Papayawhip = Color(0xFFFFEFD5)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #FFEFD5 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.