#E7C851#E7C851

#E7C851 is a very light, vivid yellow. Relative luminance 0.589; OKLCH L 83.8% C 0.140 H 94.5°. Best body text is #000000 at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#E7C851
RGBrgb(231, 200, 81)
HSLhsl(48, 76%, 61%)
HSVhsv(48, 65%, 91%)
CMYKcmyk(0%, 13.4%, 64.9%, 9.4%)
CIE-LABlab(81.23, -2.21, 61.56)
CIE-LCHlch(81.23, 61.60, 92.05°)
OKLaboklab(83.75% -0.011 0.1396)
OKLCHoklch(83.75% 0.14 94.5)
XYZxyz(55.0971, 58.8944, 16.2486)
Luminance0.5889 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7C851 #5170E7
analogous
#E77D51 #E7C851 #BBE751
triadic
#E7C851 #51E7C8 #C851E7
tetradic
#E7C851 #51E77D #5170E7 #E751BB
square
#E7C851 #51E77D #5170E7 #E751BB
split-complementary
#E7C851 #51BBE7 #7D51E7
monochromatic
#A78917 #DCB51E #E7C851 #EED987 #F6EABD

Accessibility & contrast

On white

1.64
#E7C851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.78
#E7C851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7C851
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7C851#FFFFFF#000000##000000
##E7C8511.001.6412.7812.78
#FFFFFF1.641.0021.0021.00
#00000012.7821.001.001.00
##00000012.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC443
Deuteranopia (green-blind)
#E3CE57
Tritanopia (blue-blind)
#F9B9AF
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #e7c851;
/* rgb */ color: rgb(231, 200, 81);
/* oklch */ color: oklch(83.8% 0.140 94.5);
Tailwind
colors: {
  custom: {
    50: '#f2d887',
    500: '#e7c851',
    950: '#000000',
  },
}
SCSS
$custom: #e7c851;
$custom-light: #f2d887;
$custom-dark: #000000;
JSON
{
  "hex": "#e7c851",
  "rgb": {
    "r": 231,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 47.6,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.83753,
    "c": 0.14007,
    "h": 94.5
  },
  "luminance": 0.58892
}

Semantic roles & 50–950 ramp

primary
#E7C851
secondary
#344CA8
accent
#37D80E
background
#FFFEFC
surface
#FFFBF3
border
#D7D4CD
text
#17140C
muted
#85837F

Preview Lab

Preview with #E7C851

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

Preview Lab → · Contrast checker → · Palette generator →

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