#ECD874#ECD874

#ECD874 is a very light, vivid yellow. Relative luminance 0.682; OKLCH L 87.8% C 0.123 H 98.3°. Best body text is #000000 at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#ECD874
RGBrgb(236, 216, 116)
HSLhsl(50, 76%, 69%)
HSVhsv(50, 51%, 93%)
CMYKcmyk(0%, 8.5%, 50.8%, 7.5%)
CIE-LABlab(86.11, -5.80, 51.33)
CIE-LCHlch(86.11, 51.66, 96.44°)
OKLaboklab(87.83% -0.0176 0.1217)
OKLCHoklch(87.83% 0.123 98.3)
XYZxyz(62.3023, 68.2080, 26.4033)
Luminance0.6821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD874 #7488EC
analogous
#EC9C74 #ECD874 #C4EC74
triadic
#ECD874 #74ECD8 #D874EC
tetradic
#ECD874 #74EC9C #7488EC #EC74C4
square
#ECD874 #74EC9C #7488EC #EC74C4
split-complementary
#ECD874 #74C4EC #9C74EC
monochromatic
#CAAD1C #E5C93E #ECD874 #F3E7AA #FBF6E0

Accessibility & contrast

On white

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

On black

14.64
#ECD874 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD874
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD874#FFFFFF#000000##000000
##ECD8741.001.4314.6414.64
#FFFFFF1.431.0021.0021.00
#00000014.6421.001.001.00
##00000014.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D36B
Deuteranopia (green-blind)
#EFDB78
Tritanopia (blue-blind)
#FCCBC1
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #ecd874;
/* rgb */ color: rgb(236, 216, 116);
/* oklch */ color: oklch(87.8% 0.123 98.3);
Tailwind
colors: {
  custom: {
    50: '#f4e39e',
    500: '#ecd874',
    950: '#000000',
  },
}
SCSS
$custom: #ecd874;
$custom-light: #f4e39e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd874",
  "rgb": {
    "r": 236,
    "g": 216,
    "b": 116
  },
  "hsl": {
    "h": 50,
    "s": 75.949,
    "l": 69.02
  },
  "oklch": {
    "l": 0.87829,
    "c": 0.12292,
    "h": 98.3
  },
  "luminance": 0.68206
}

Semantic roles & 50–950 ramp

primary
#ECD874
secondary
#4056C5
accent
#2FD80D
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD874

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

Preview Lab → · Contrast checker → · Palette generator →

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