#EBD797#EBD797

#EBD797 is a very light, moderate yellow. Relative luminance 0.685; OKLCH L 88.1% C 0.085 H 92.8°. Best body text is #000000 at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#EBD797
RGBrgb(235, 215, 151)
HSLhsl(46, 68%, 76%)
HSVhsv(46, 36%, 92%)
CMYKcmyk(0%, 8.5%, 35.7%, 7.8%)
CIE-LABlab(86.26, -2.17, 34.13)
CIE-LCHlch(86.26, 34.20, 93.64°)
OKLaboklab(88.08% -0.0041 0.0847)
OKLCHoklch(88.08% 0.085 92.8)
XYZxyz(64.1484, 68.4994, 39.1148)
Luminance0.6850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EBD797 #97ABEB
analogous
#EBAD97 #EBD797 #D5EB97
triadic
#EBD797 #97EBD7 #D797EB
tetradic
#EBD797 #97EBAD #97ABEB #EB97D5
square
#EBD797 #97EBAD #97ABEB #EB97D5
split-complementary
#EBD797 #97D5EB #AD97EB
monochromatic
#D7B030 #E1C364 #EBD797 #F5EBCA #FAF5E5

Accessibility & contrast

On white

1.43
#EBD797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.70
#EBD797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EBD797
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EBD797#FFFFFF#000000##000000
##EBD7971.001.4314.7014.70
#FFFFFF1.431.0021.0021.00
#00000014.7021.001.001.00
##00000014.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D493
Deuteranopia (green-blind)
#EADA99
Tritanopia (blue-blind)
#F8CDC6
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ebd797;
/* rgb */ color: rgb(235, 215, 151);
/* oklch */ color: oklch(88.1% 0.085 92.8);
Tailwind
colors: {
  custom: {
    50: '#f2e3b6',
    500: '#ebd797',
    950: '#000000',
  },
}
SCSS
$custom: #ebd797;
$custom-light: #f2e3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ebd797",
  "rgb": {
    "r": 235,
    "g": 215,
    "b": 151
  },
  "hsl": {
    "h": 45.714,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.88081,
    "c": 0.08478,
    "h": 92.8
  },
  "luminance": 0.68497
}

Semantic roles & 50–950 ramp

primary
#EBD797
secondary
#6078C6
accent
#42D016
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#171511
muted
#858481

Preview Lab

Preview with #EBD797

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

Preview Lab → · Contrast checker → · Palette generator →

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