#CEC772#CEC772

#CEC772 is a light, moderate yellow. Relative luminance 0.552; OKLCH L 81.7% C 0.107 H 104.4°. Best body text is #000000 at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#CEC772
RGBrgb(206, 199, 114)
HSLhsl(55, 48%, 63%)
HSVhsv(55, 45%, 81%)
CMYKcmyk(0%, 3.4%, 44.7%, 19.2%)
CIE-LABlab(79.15, -9.43, 43.25)
CIE-LCHlch(79.15, 44.27, 102.30°)
OKLaboklab(81.7% -0.0267 0.104)
OKLCHoklch(81.7% 0.107 104.4)
XYZxyz(48.9153, 55.1849, 23.9914)
Luminance0.5518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC772 #7279CE
analogous
#CE9972 #CEC772 #A7CE72
triadic
#CEC772 #72CEC7 #C772CE
tetradic
#CEC772 #72CE99 #7279CE #CE72A7
square
#CEC772 #72CE99 #7279CE #CE72A7
split-complementary
#CEC772 #72A7CE #9972CE
monochromatic
#938B33 #BEB545 #CEC772 #DED99F #EEEBCD

Accessibility & contrast

On white

1.74
#CEC772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.04
#CEC772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC772
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC772#FFFFFF#000000##000000
##CEC7721.001.7412.0412.04
#FFFFFF1.741.0021.0021.00
#00000012.0421.001.001.00
##00000012.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C26B
Deuteranopia (green-blind)
#D7C676
Tritanopia (blue-blind)
#DABDB3
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec772;
/* rgb */ color: rgb(206, 199, 114);
/* oklch */ color: oklch(81.7% 0.107 104.4);
Tailwind
colors: {
  custom: {
    50: '#ded79c',
    500: '#cec772',
    950: '#000000',
  },
}
SCSS
$custom: #cec772;
$custom-light: #ded79c;
$custom-dark: #000000;
JSON
{
  "hex": "#cec772",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 114
  },
  "hsl": {
    "h": 55.435,
    "s": 48.421,
    "l": 62.745
  },
  "oklch": {
    "l": 0.81696,
    "c": 0.10739,
    "h": 104.4
  },
  "luminance": 0.55184
}

Semantic roles & 50–950 ramp

primary
#CEC772
secondary
#4B5199
accent
#35BC2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CEC772

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

Preview Lab → · Contrast checker → · Palette generator →

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