#CEC45F#CEC45F

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

Color values

HEX#CEC45F
RGBrgb(206, 196, 95)
HSLhsl(55, 53%, 59%)
HSVhsv(55, 54%, 81%)
CMYKcmyk(0%, 4.9%, 53.9%, 19.2%)
CIE-LABlab(78.13, -9.61, 51.22)
CIE-LCHlch(78.13, 52.12, 100.62°)
OKLaboklab(80.81% -0.0291 0.1199)
OKLCHoklch(80.81% 0.123 103.6)
XYZxyz(47.2605, 53.4295, 18.6477)
Luminance0.5343 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC45F #5F69CE
analogous
#CE8D5F #CEC45F #A1CE5F
triadic
#CEC45F #5FCEC4 #C45FCE
tetradic
#CEC45F #5FCE8D #5F69CE #CE5FA1
square
#CEC45F #5FCE8D #5F69CE #CE5FA1
split-complementary
#CEC45F #5FA1CE #8D5FCE
monochromatic
#89802A #B8AC38 #CEC45F #DCD58E #EBE7BD

Accessibility & contrast

On white

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

On black

11.69
#CEC45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC45F
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC45F#FFFFFF#000000##000000
##CEC45F1.001.8011.6911.69
#FFFFFF1.801.0021.0021.00
#00000011.6921.001.001.00
##00000011.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE55
Deuteranopia (green-blind)
#D6C464
Tritanopia (blue-blind)
#DCB9AD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec45f;
/* rgb */ color: rgb(206, 196, 95);
/* oklch */ color: oklch(80.8% 0.123 103.6);
Tailwind
colors: {
  custom: {
    50: '#dfd58f',
    500: '#cec45f',
    950: '#000000',
  },
}
SCSS
$custom: #cec45f;
$custom-light: #dfd58f;
$custom-dark: #000000;
JSON
{
  "hex": "#cec45f",
  "rgb": {
    "r": 206,
    "g": 196,
    "b": 95
  },
  "hsl": {
    "h": 54.595,
    "s": 53.11,
    "l": 59.02
  },
  "oklch": {
    "l": 0.80813,
    "c": 0.12341,
    "h": 103.6
  },
  "luminance": 0.53428
}

Semantic roles & 50–950 ramp

primary
#CEC45F
secondary
#42498F
accent
#58DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC45F

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

Preview Lab → · Contrast checker → · Palette generator →

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