#EBD97B#EBD97B

#EBD97B is a very light, moderate yellow. Relative luminance 0.687; OKLCH L 88.0% C 0.117 H 98.7°. Best body text is #000000 at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#EBD97B
RGBrgb(235, 217, 123)
HSLhsl(50, 74%, 70%)
HSVhsv(50, 48%, 92%)
CMYKcmyk(0%, 7.7%, 47.7%, 7.8%)
CIE-LABlab(86.37, -6.09, 48.26)
CIE-LCHlch(86.37, 48.64, 97.19°)
OKLaboklab(88.04% -0.0177 0.1155)
OKLCHoklch(88.04% 0.117 98.7)
XYZxyz(62.6507, 68.7202, 28.6992)
Luminance0.6872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EBD97B #7B8DEB
analogous
#EBA17B #EBD97B #C5EB7B
triadic
#EBD97B #7BEBD9 #D97BEB
tetradic
#EBD97B #7BEBA1 #7B8DEB #EB7BC5
square
#EBD97B #7BEBA1 #7B8DEB #EB7BC5
split-complementary
#EBD97B #7BC5EB #A17BEB
monochromatic
#CDB11F #E3CA46 #EBD97B #F3E8B0 #FBF7E4

Accessibility & contrast

On white

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

On black

14.74
#EBD97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EBD97B
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EBD97B#FFFFFF#000000##000000
##EBD97B1.001.4214.7414.74
#FFFFFF1.421.0021.0021.00
#00000014.7421.001.001.00
##00000014.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ebd97b;
/* rgb */ color: rgb(235, 217, 123);
/* oklch */ color: oklch(88.0% 0.117 98.7);
Tailwind
colors: {
  custom: {
    50: '#f3e4a3',
    500: '#ebd97b',
    950: '#000000',
  },
}
SCSS
$custom: #ebd97b;
$custom-light: #f3e4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ebd97b",
  "rgb": {
    "r": 235,
    "g": 217,
    "b": 123
  },
  "hsl": {
    "h": 50.357,
    "s": 73.684,
    "l": 70.196
  },
  "oklch": {
    "l": 0.88038,
    "c": 0.1168,
    "h": 98.7
  },
  "luminance": 0.68718
}

Semantic roles & 50–950 ramp

primary
#EBD97B
secondary
#465AC4
accent
#30D610
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #EBD97B

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

Preview Lab → · Contrast checker → · Palette generator →

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