#CEC045#CEC045

#CEC045 is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.7% C 0.141 H 102.8°. Best body text is #000000 at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#CEC045
RGBrgb(206, 192, 69)
HSLhsl(54, 58%, 54%)
HSVhsv(54, 67%, 81%)
CMYKcmyk(0%, 6.8%, 66.5%, 19.2%)
CIE-LABlab(76.83, -9.35, 61.24)
CIE-LCHlch(76.83, 61.95, 98.68°)
OKLaboklab(79.71% -0.0313 0.1378)
OKLCHoklch(79.71% 0.141 102.8)
XYZxyz(45.3793, 51.2526, 13.1315)
Luminance0.5125 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC045 #4553CE
analogous
#CE7C45 #CEC045 #98CE45
triadic
#CEC045 #45CEC0 #C045CE
tetradic
#CEC045 #45CE7C #4553CE #CE4598
square
#CEC045 #45CE7C #4553CE #CE4598
split-complementary
#CEC045 #4598CE #7C45CE
monochromatic
#797020 #A99C2D #CEC045 #DBD075 #E8E1A6

Accessibility & contrast

On white

1.87
#CEC045 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.25
#CEC045 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC045
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC045#FFFFFF#000000##000000
##CEC0451.001.8711.2511.25
#FFFFFF1.871.0021.0021.00
#00000011.2521.001.001.00
##00000011.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA34
Deuteranopia (green-blind)
#D5C04C
Tritanopia (blue-blind)
#DDB3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec045;
/* rgb */ color: rgb(206, 192, 69);
/* oklch */ color: oklch(79.7% 0.141 102.8);
Tailwind
colors: {
  custom: {
    50: '#e0d27f',
    500: '#cec045',
    950: '#000000',
  },
}
SCSS
$custom: #cec045;
$custom-light: #e0d27f;
$custom-dark: #000000;
JSON
{
  "hex": "#cec045",
  "rgb": {
    "r": 206,
    "g": 192,
    "b": 69
  },
  "hsl": {
    "h": 53.869,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.79707,
    "c": 0.14133,
    "h": 102.8
  },
  "luminance": 0.51251
}

Semantic roles & 50–950 ramp

primary
#CEC045
secondary
#363E81
accent
#56E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC045

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

Preview Lab → · Contrast checker → · Palette generator →

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