#CEC45D#CEC45D

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

Color values

HEX#CEC45D
RGBrgb(206, 196, 93)
HSLhsl(55, 54%, 59%)
HSVhsv(55, 55%, 81%)
CMYKcmyk(0%, 4.9%, 54.9%, 19.2%)
CIE-LABlab(78.11, -9.77, 52.13)
CIE-LCHlch(78.11, 53.04, 100.61°)
OKLaboklab(80.79% -0.0298 0.1217)
OKLCHoklch(80.79% 0.125 103.8)
XYZxyz(47.1708, 53.3936, 18.1750)
Luminance0.5339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC45D #5D67CE
analogous
#CE8B5D #CEC45D #9FCE5D
triadic
#CEC45D #5DCEC4 #C45DCE
tetradic
#CEC45D #5DCE8B #5D67CE #CE5D9F
square
#CEC45D #5DCE8B #5D67CE #CE5D9F
split-complementary
#CEC45D #5D9FCE #8B5DCE
monochromatic
#887F29 #B7AB37 #CEC45D #DCD58C #EAE6BB

Accessibility & contrast

On white

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

On black

11.68
#CEC45D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC45D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC45D#FFFFFF#000000##000000
##CEC45D1.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec45d;
/* rgb */ color: rgb(206, 196, 93);
/* oklch */ color: oklch(80.8% 0.125 103.8);
Tailwind
colors: {
  custom: {
    50: '#dfd58e',
    500: '#cec45d',
    950: '#000000',
  },
}
SCSS
$custom: #cec45d;
$custom-light: #dfd58e;
$custom-dark: #000000;
JSON
{
  "hex": "#cec45d",
  "rgb": {
    "r": 206,
    "g": 196,
    "b": 93
  },
  "hsl": {
    "h": 54.69,
    "s": 53.555,
    "l": 58.627
  },
  "oklch": {
    "l": 0.80789,
    "c": 0.12527,
    "h": 103.8
  },
  "luminance": 0.53392
}

Semantic roles & 50–950 ramp

primary
#CEC45D
secondary
#41488E
accent
#58DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CEC45D

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

Preview Lab → · Contrast checker → · Palette generator →

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