#CEC873#CEC873

#CEC873 is a light, moderate yellow. Relative luminance 0.557; OKLCH L 81.9% C 0.107 H 105.0°. Best body text is #000000 at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#CEC873
RGBrgb(206, 200, 115)
HSLhsl(56, 48%, 63%)
HSVhsv(56, 44%, 81%)
CMYKcmyk(0%, 2.9%, 44.2%, 19.2%)
CIE-LABlab(79.43, -9.84, 43.10)
CIE-LCHlch(79.43, 44.21, 102.87°)
OKLaboklab(81.92% -0.0277 0.1038)
OKLCHoklch(81.92% 0.107 105)
XYZxyz(49.2034, 55.6695, 24.3697)
Luminance0.5567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC873 #7379CE
analogous
#CE9A73 #CEC873 #A6CE73
triadic
#CEC873 #73CEC8 #C873CE
tetradic
#CEC873 #73CE9A #7379CE #CE73A6
square
#CEC873 #73CE9A #7379CE #CE73A6
split-complementary
#CEC873 #73A6CE #9A73CE
monochromatic
#938D33 #BEB646 #CEC873 #DEDAA0 #EEECCE

Accessibility & contrast

On white

1.73
#CEC873 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.13
#CEC873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC873
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC873#FFFFFF#000000##000000
##CEC8731.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C26C
Deuteranopia (green-blind)
#D8C777
Tritanopia (blue-blind)
#DABEB4
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cec873;
/* rgb */ color: rgb(206, 200, 115);
/* oklch */ color: oklch(81.9% 0.107 105.0);
Tailwind
colors: {
  custom: {
    50: '#ded89d',
    500: '#cec873',
    950: '#000000',
  },
}
SCSS
$custom: #cec873;
$custom-light: #ded89d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec873",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 115
  },
  "hsl": {
    "h": 56.044,
    "s": 48.148,
    "l": 62.941
  },
  "oklch": {
    "l": 0.81921,
    "c": 0.10741,
    "h": 105
  },
  "luminance": 0.55668
}

Semantic roles & 50–950 ramp

primary
#CEC873
secondary
#4C5199
accent
#34BB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CEC873

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

Preview Lab → · Contrast checker → · Palette generator →

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