#EBD97C#EBD97C

#EBD97C is a very light, moderate yellow. Relative luminance 0.687; OKLCH L 88.1% C 0.116 H 98.6°. Best body text is #000000 at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#EBD97C
RGBrgb(235, 217, 124)
HSLhsl(50, 74%, 70%)
HSVhsv(50, 47%, 92%)
CMYKcmyk(0%, 7.7%, 47.2%, 7.8%)
CIE-LABlab(86.38, -5.99, 47.79)
CIE-LCHlch(86.38, 48.16, 97.15°)
OKLaboklab(88.05% -0.0173 0.1145)
OKLCHoklch(88.05% 0.116 98.6)
XYZxyz(62.7137, 68.7453, 29.0306)
Luminance0.6874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EBD97C #7C8EEB
analogous
#EBA17C #EBD97C #C6EB7C
triadic
#EBD97C #7CEBD9 #D97CEB
tetradic
#EBD97C #7CEBA1 #7C8EEB #EB7CC6
square
#EBD97C #7CEBA1 #7C8EEB #EB7CC6
split-complementary
#EBD97C #7CC6EB #A17CEB
monochromatic
#CDB11F #E3CA47 #EBD97C #F3E8B1 #FBF7E4

Accessibility & contrast

On white

1.42
#EBD97C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.75
#EBD97C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EBD97C
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EBD97C#FFFFFF#000000##000000
##EBD97C1.001.4214.7514.75
#FFFFFF1.421.0021.0021.00
#00000014.7521.001.001.00
##00000014.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D474
Deuteranopia (green-blind)
#EEDB80
Tritanopia (blue-blind)
#FACDC3
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ebd97c;
/* rgb */ color: rgb(235, 217, 124);
/* oklch */ color: oklch(88.1% 0.116 98.6);
Tailwind
colors: {
  custom: {
    50: '#f3e4a3',
    500: '#ebd97c',
    950: '#000000',
  },
}
SCSS
$custom: #ebd97c;
$custom-light: #f3e4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ebd97c",
  "rgb": {
    "r": 235,
    "g": 217,
    "b": 124
  },
  "hsl": {
    "h": 50.27,
    "s": 73.51,
    "l": 70.392
  },
  "oklch": {
    "l": 0.88052,
    "c": 0.11578,
    "h": 98.6
  },
  "luminance": 0.68743
}

Semantic roles & 50–950 ramp

primary
#EBD97C
secondary
#475BC4
accent
#30D610
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #EBD97C

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

Preview Lab → · Contrast checker → · Palette generator →

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