#CEC45C#CEC45C

#CEC45C is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.8% C 0.126 H 103.8°. Best body text is #000000 at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#CEC45C
RGBrgb(206, 196, 92)
HSLhsl(55, 54%, 58%)
HSVhsv(55, 55%, 81%)
CMYKcmyk(0%, 4.9%, 55.3%, 19.2%)
CIE-LABlab(78.10, -9.85, 52.58)
CIE-LCHlch(78.10, 53.50, 100.60°)
OKLaboklab(80.78% -0.0301 0.1225)
OKLCHoklch(80.78% 0.126 103.8)
XYZxyz(47.1268, 53.3760, 17.9433)
Luminance0.5337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC45C #5C66CE
analogous
#CE8B5C #CEC45C #9FCE5C
triadic
#CEC45C #5CCEC4 #C45CCE
tetradic
#CEC45C #5CCE8B #5C66CE #CE5C9F
square
#CEC45C #5CCE8B #5C66CE #CE5C9F
split-complementary
#CEC45C #5C9FCE #8B5CCE
monochromatic
#877F29 #B6AB37 #CEC45C #DCD58B #EAE6BA

Accessibility & contrast

On white

1.80
#CEC45C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.67
#CEC45C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC45C
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC45C#FFFFFF#000000##000000
##CEC45C1.001.8011.6711.67
#FFFFFF1.801.0021.0021.00
#00000011.6721.001.001.00
##00000011.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE52
Deuteranopia (green-blind)
#D7C461
Tritanopia (blue-blind)
#DCB8AD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec45c;
/* rgb */ color: rgb(206, 196, 92);
/* oklch */ color: oklch(80.8% 0.126 103.8);
Tailwind
colors: {
  custom: {
    50: '#dfd58d',
    500: '#cec45c',
    950: '#000000',
  },
}
SCSS
$custom: #cec45c;
$custom-light: #dfd58d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec45c",
  "rgb": {
    "r": 206,
    "g": 196,
    "b": 92
  },
  "hsl": {
    "h": 54.737,
    "s": 53.774,
    "l": 58.431
  },
  "oklch": {
    "l": 0.80778,
    "c": 0.12619,
    "h": 103.8
  },
  "luminance": 0.53374
}

Semantic roles & 50–950 ramp

primary
#CEC45C
secondary
#40478E
accent
#57DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC45C

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

Preview Lab → · Contrast checker → · Palette generator →

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