#CEC871#CEC871

#CEC871 is a light, moderate yellow. Relative luminance 0.556; OKLCH L 81.9% C 0.110 H 105.1°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#CEC871
RGBrgb(206, 200, 113)
HSLhsl(56, 49%, 63%)
HSVhsv(56, 45%, 81%)
CMYKcmyk(0%, 2.9%, 45.1%, 19.2%)
CIE-LABlab(79.40, -10.04, 44.06)
CIE-LCHlch(79.40, 45.19, 102.84°)
OKLaboklab(81.89% -0.0285 0.1058)
OKLCHoklch(81.89% 0.11 105.1)
XYZxyz(49.0896, 55.6239, 23.7702)
Luminance0.5562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC871 #7177CE
analogous
#CE9971 #CEC871 #A5CE71
triadic
#CEC871 #71CEC8 #C871CE
tetradic
#CEC871 #71CE99 #7177CE #CE71A5
square
#CEC871 #71CE99 #7177CE #CE71A5
split-complementary
#CEC871 #71A5CE #9971CE
monochromatic
#928C32 #BEB644 #CEC871 #DEDA9E #EDEBCC

Accessibility & contrast

On white

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

On black

12.12
#CEC871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC871
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC871#FFFFFF#000000##000000
##CEC8711.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C26A
Deuteranopia (green-blind)
#D8C775
Tritanopia (blue-blind)
#DABEB3
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cec871;
/* rgb */ color: rgb(206, 200, 113);
/* oklch */ color: oklch(81.9% 0.110 105.1);
Tailwind
colors: {
  custom: {
    50: '#ded89b',
    500: '#cec871',
    950: '#000000',
  },
}
SCSS
$custom: #cec871;
$custom-light: #ded89b;
$custom-dark: #000000;
JSON
{
  "hex": "#cec871",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 56.129,
    "s": 48.691,
    "l": 62.549
  },
  "oklch": {
    "l": 0.81891,
    "c": 0.10953,
    "h": 105.1
  },
  "luminance": 0.55623
}

Semantic roles & 50–950 ramp

primary
#CEC871
secondary
#4B5098
accent
#33BC2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CEC871

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

Preview Lab → · Contrast checker → · Palette generator →

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