#EFD97F#EFD97F

#EFD97F is a very light, moderate yellow. Relative luminance 0.695; OKLCH L 88.4% C 0.113 H 96.0°. Best body text is #000000 at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#EFD97F
RGBrgb(239, 217, 127)
HSLhsl(48, 78%, 72%)
HSVhsv(48, 47%, 94%)
CMYKcmyk(0%, 9.2%, 46.9%, 6.3%)
CIE-LABlab(86.76, -4.12, 46.87)
CIE-LCHlch(86.76, 47.05, 95.02°)
OKLaboklab(88.45% -0.0118 0.1126)
OKLCHoklch(88.45% 0.113 96)
XYZxyz(64.2421, 69.5112, 30.1076)
Luminance0.6951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EFD97F #7F95EF
analogous
#EFA17F #EFD97F #CDEF7F
triadic
#EFD97F #7FEFD9 #D97FEF
tetradic
#EFD97F #7FEFA1 #7F95EF #EF7FCD
square
#EFD97F #7FEFA1 #7F95EF #EF7FCD
split-complementary
#EFD97F #7FCDEF #A17FEF
monochromatic
#D9B31B #E8C949 #EFD97F #F6E9B5 #FCF7E4

Accessibility & contrast

On white

1.41
#EFD97F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.90
#EFD97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EFD97F
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EFD97F#FFFFFF#000000##000000
##EFD97F1.001.4114.9014.90
#FFFFFF1.411.0021.0021.00
#00000014.9021.001.001.00
##00000014.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D578
Deuteranopia (green-blind)
#EFDC83
Tritanopia (blue-blind)
#FECDC3
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #efd97f;
/* rgb */ color: rgb(239, 217, 127);
/* oklch */ color: oklch(88.4% 0.113 96.0);
Tailwind
colors: {
  custom: {
    50: '#f6e4a6',
    500: '#efd97f',
    950: '#000000',
  },
}
SCSS
$custom: #efd97f;
$custom-light: #f6e4a6;
$custom-dark: #000000;
JSON
{
  "hex": "#efd97f",
  "rgb": {
    "r": 239,
    "g": 217,
    "b": 127
  },
  "hsl": {
    "h": 48.214,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.88445,
    "c": 0.11321,
    "h": 96
  },
  "luminance": 0.69509
}

Semantic roles & 50–950 ramp

primary
#EFD97F
secondary
#4962C9
accent
#34DA0B
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #EFD97F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#EFD97F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva