#CEC38D#CEC38D

#CEC38D is a light, moderate yellow. Relative luminance 0.541; OKLCH L 81.3% C 0.072 H 98.0°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#CEC38D
RGBrgb(206, 195, 141)
HSLhsl(50, 40%, 68%)
HSVhsv(50, 32%, 81%)
CMYKcmyk(0%, 5.3%, 31.6%, 19.2%)
CIE-LABlab(78.51, -4.33, 28.59)
CIE-LCHlch(78.51, 28.91, 98.61°)
OKLaboklab(81.32% -0.01 0.0715)
OKLCHoklch(81.32% 0.072 98)
XYZxyz(49.7769, 54.0763, 33.0098)
Luminance0.5407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC38D #8D98CE
analogous
#CEA28D #CEC38D #B8CE8D
triadic
#CEC38D #8DCEC3 #C38DCE
tetradic
#CEC38D #8DCEA2 #8D98CE #CE8DB8
square
#CEC38D #8DCEA2 #8D98CE #CE8DB8
split-complementary
#CEC38D #8DB8CE #A28DCE
monochromatic
#9D8E44 #BCAC62 #CEC38D #E0DAB8 #F3F0E3

Accessibility & contrast

On white

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

On black

11.82
#CEC38D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC38D
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC38D#FFFFFF#000000##000000
##CEC38D1.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDC089
Deuteranopia (green-blind)
#D1C48F
Tritanopia (blue-blind)
#D8BBB5
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cec38d;
/* rgb */ color: rgb(206, 195, 141);
/* oklch */ color: oklch(81.3% 0.072 98.0);
Tailwind
colors: {
  custom: {
    50: '#ded5ae',
    500: '#cec38d',
    950: '#000000',
  },
}
SCSS
$custom: #cec38d;
$custom-light: #ded5ae;
$custom-dark: #000000;
JSON
{
  "hex": "#cec38d",
  "rgb": {
    "r": 206,
    "g": 195,
    "b": 141
  },
  "hsl": {
    "h": 49.846,
    "s": 39.877,
    "l": 68.039
  },
  "oklch": {
    "l": 0.81321,
    "c": 0.07218,
    "h": 98
  },
  "luminance": 0.54075
}

Semantic roles & 50–950 ramp

primary
#CEC38D
secondary
#5C68A3
accent
#48B333
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CEC38D

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

Preview Lab → · Contrast checker → · Palette generator →

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