#CEC38F#CEC38F

#CEC38F is a light, moderate yellow. Relative luminance 0.541; OKLCH L 81.4% C 0.070 H 97.6°. Best body text is #000000 at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#CEC38F
RGBrgb(206, 195, 143)
HSLhsl(50, 39%, 68%)
HSVhsv(50, 31%, 81%)
CMYKcmyk(0%, 5.3%, 30.6%, 19.2%)
CIE-LABlab(78.54, -4.07, 27.58)
CIE-LCHlch(78.54, 27.88, 98.40°)
OKLaboklab(81.36% -0.0092 0.0692)
OKLCHoklch(81.36% 0.07 97.6)
XYZxyz(49.9271, 54.1364, 33.8006)
Luminance0.5413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC38F #8F9ACE
analogous
#CEA38F #CEC38F #B9CE8F
triadic
#CEC38F #8FCEC3 #C38FCE
tetradic
#CEC38F #8FCEA3 #8F9ACE #CE8FB9
square
#CEC38F #8FCEA3 #8F9ACE #CE8FB9
split-complementary
#CEC38F #8FB9CE #A38FCE
monochromatic
#9E8E45 #BBAC64 #CEC38F #E1DABA #F3F1E4

Accessibility & contrast

On white

1.78
#CEC38F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.83
#CEC38F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC38F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC38F#FFFFFF#000000##000000
##CEC38F1.001.7811.8311.83
#FFFFFF1.781.0021.0021.00
#00000011.8321.001.001.00
##00000011.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDC08C
Deuteranopia (green-blind)
#D0C491
Tritanopia (blue-blind)
#D8BCB5
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cec38f;
/* rgb */ color: rgb(206, 195, 143);
/* oklch */ color: oklch(81.4% 0.070 97.6);
Tailwind
colors: {
  custom: {
    50: '#ddd5b0',
    500: '#cec38f',
    950: '#000000',
  },
}
SCSS
$custom: #cec38f;
$custom-light: #ddd5b0;
$custom-dark: #000000;
JSON
{
  "hex": "#cec38f",
  "rgb": {
    "r": 206,
    "g": 195,
    "b": 143
  },
  "hsl": {
    "h": 49.524,
    "s": 39.13,
    "l": 68.431
  },
  "oklch": {
    "l": 0.8136,
    "c": 0.06976,
    "h": 97.6
  },
  "luminance": 0.54135
}

Semantic roles & 50–950 ramp

primary
#CEC38F
secondary
#5E6AA3
accent
#4AB233
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CEC38F

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

Preview Lab → · Contrast checker → · Palette generator →

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