#E7CC5F#E7CC5F

#E7CC5F is a very light, vivid yellow. Relative luminance 0.610; OKLCH L 84.7% C 0.132 H 95.5°. Best body text is #000000 at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#E7CC5F
RGBrgb(231, 204, 95)
HSLhsl(48, 74%, 64%)
HSVhsv(48, 59%, 91%)
CMYKcmyk(0%, 11.7%, 58.9%, 9.4%)
CIE-LABlab(82.38, -3.36, 56.66)
CIE-LCHlch(82.38, 56.76, 93.39°)
OKLaboklab(84.7% -0.0127 0.1311)
OKLCHoklch(84.7% 0.132 95.5)
XYZxyz(56.6158, 61.0035, 19.6170)
Luminance0.6100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7CC5F #5F7AE7
analogous
#E7885F #E7CC5F #BEE75F
triadic
#E7CC5F #5FE7CC #CC5FE7
tetradic
#E7CC5F #5FE788 #5F7AE7 #E75FBE
square
#E7CC5F #5FE788 #5F7AE7 #E75FBE
split-complementary
#E7CC5F #5FBEE7 #885FE7
monochromatic
#B1931B #DFBB2A #E7CC5F #EFDD94 #F7EEC9

Accessibility & contrast

On white

1.59
#E7CC5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.20
#E7CC5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7CC5F
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7CC5F#FFFFFF#000000##000000
##E7CC5F1.001.5913.2013.20
#FFFFFF1.591.0021.0021.00
#00000013.2021.001.001.00
##00000013.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC854
Deuteranopia (green-blind)
#E5D164
Tritanopia (blue-blind)
#F8BEB4
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #e7cc5f;
/* rgb */ color: rgb(231, 204, 95);
/* oklch */ color: oklch(84.7% 0.132 95.5);
Tailwind
colors: {
  custom: {
    50: '#f2db90',
    500: '#e7cc5f',
    950: '#000000',
  },
}
SCSS
$custom: #e7cc5f;
$custom-light: #f2db90;
$custom-dark: #000000;
JSON
{
  "hex": "#e7cc5f",
  "rgb": {
    "r": 231,
    "g": 204,
    "b": 95
  },
  "hsl": {
    "h": 48.088,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.84701,
    "c": 0.13174,
    "h": 95.5
  },
  "luminance": 0.61001
}

Semantic roles & 50–950 ramp

primary
#E7CC5F
secondary
#3951B2
accent
#37D60F
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#17140D
muted
#85837F

Preview Lab

Preview with #E7CC5F

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

Preview Lab → · Contrast checker → · Palette generator →

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