#E7D45F#E7D45F

#E7D45F is a very light, vivid yellow. Relative luminance 0.649; OKLCH L 86.3% C 0.138 H 100.2°. Best body text is #000000 at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#E7D45F
RGBrgb(231, 212, 95)
HSLhsl(52, 74%, 64%)
HSVhsv(52, 59%, 91%)
CMYKcmyk(0%, 8.2%, 58.9%, 9.4%)
CIE-LABlab(84.43, -7.43, 58.97)
CIE-LCHlch(84.43, 59.44, 97.18°)
OKLaboklab(86.33% -0.0244 0.1361)
OKLCHoklch(86.33% 0.138 100.2)
XYZxyz(58.5663, 64.9045, 20.2671)
Luminance0.6490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D45F #5F72E7
analogous
#E7905F #E7D45F #B6E75F
triadic
#E7D45F #5FE7D4 #D45FE7
tetradic
#E7D45F #5FE790 #5F72E7 #E75FB6
square
#E7D45F #5FE790 #5F72E7 #E75FB6
split-complementary
#E7D45F #5FB6E7 #905FE7
monochromatic
#B19C1B #DFC62A #E7D45F #EFE294 #F7F1C9

Accessibility & contrast

On white

1.50
#E7D45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.98
#E7D45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D45F
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D45F#FFFFFF#000000##000000
##E7D45F1.001.5013.9813.98
#FFFFFF1.501.0021.0021.00
#00000013.9821.001.001.00
##00000013.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CE53
Deuteranopia (green-blind)
#EBD665
Tritanopia (blue-blind)
#F7C6BA
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #e7d45f;
/* rgb */ color: rgb(231, 212, 95);
/* oklch */ color: oklch(86.3% 0.138 100.2);
Tailwind
colors: {
  custom: {
    50: '#f1e090',
    500: '#e7d45f',
    950: '#000000',
  },
}
SCSS
$custom: #e7d45f;
$custom-light: #f1e090;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d45f",
  "rgb": {
    "r": 231,
    "g": 212,
    "b": 95
  },
  "hsl": {
    "h": 51.618,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.86328,
    "c": 0.13823,
    "h": 100.2
  },
  "luminance": 0.64902
}

Semantic roles & 50–950 ramp

primary
#E7D45F
secondary
#3949B2
accent
#2BD60F
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #E7D45F

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

Preview Lab → · Contrast checker → · Palette generator →

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