#E7C951#E7C951

#E7C951 is a very light, vivid yellow. Relative luminance 0.594; OKLCH L 84.0% C 0.141 H 95.1°. Best body text is #000000 at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#E7C951
RGBrgb(231, 201, 81)
HSLhsl(48, 76%, 61%)
HSVhsv(48, 65%, 91%)
CMYKcmyk(0%, 13%, 64.9%, 9.4%)
CIE-LABlab(81.49, -2.72, 61.83)
CIE-LCHlch(81.49, 61.89, 92.52°)
OKLaboklab(83.96% -0.0125 0.1402)
OKLCHoklch(83.96% 0.141 95.1)
XYZxyz(55.3294, 59.3591, 16.3261)
Luminance0.5936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7C951 #516FE7
analogous
#E77E51 #E7C951 #BAE751
triadic
#E7C951 #51E7C9 #C951E7
tetradic
#E7C951 #51E77E #516FE7 #E751BA
square
#E7C951 #51E77E #516FE7 #E751BA
split-complementary
#E7C951 #51BAE7 #7E51E7
monochromatic
#A78A17 #DCB61E #E7C951 #EEDA87 #F6EABD

Accessibility & contrast

On white

1.63
#E7C951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.87
#E7C951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7C951
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7C951#FFFFFF#000000##000000
##E7C9511.001.6312.8712.87
#FFFFFF1.631.0021.0021.00
#00000012.8721.001.001.00
##00000012.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC543
Deuteranopia (green-blind)
#E4CE57
Tritanopia (blue-blind)
#F9BAB0
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #e7c951;
/* rgb */ color: rgb(231, 201, 81);
/* oklch */ color: oklch(84.0% 0.141 95.1);
Tailwind
colors: {
  custom: {
    50: '#f2d987',
    500: '#e7c951',
    950: '#000000',
  },
}
SCSS
$custom: #e7c951;
$custom-light: #f2d987;
$custom-dark: #000000;
JSON
{
  "hex": "#e7c951",
  "rgb": {
    "r": 231,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 48,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.83955,
    "c": 0.14078,
    "h": 95.1
  },
  "luminance": 0.59356
}

Semantic roles & 50–950 ramp

primary
#E7C951
secondary
#344BA8
accent
#36D80E
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E7C951

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

Preview Lab → · Contrast checker → · Palette generator →

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