#CEC245#CEC245

#CEC245 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.1% C 0.143 H 103.8°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#CEC245
RGBrgb(206, 194, 69)
HSLhsl(55, 58%, 54%)
HSVhsv(55, 67%, 81%)
CMYKcmyk(0%, 5.8%, 66.5%, 19.2%)
CIE-LABlab(77.36, -10.37, 61.79)
CIE-LCHlch(77.36, 62.65, 99.53°)
OKLaboklab(80.13% -0.0342 0.139)
OKLCHoklch(80.13% 0.143 103.8)
XYZxyz(45.8214, 52.1368, 13.2788)
Luminance0.5213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC245 #4551CE
analogous
#CE7E45 #CEC245 #95CE45
triadic
#CEC245 #45CEC2 #C245CE
tetradic
#CEC245 #45CE7E #4551CE #CE4595
square
#CEC245 #45CE7E #4551CE #CE4595
split-complementary
#CEC245 #4595CE #7E45CE
monochromatic
#797120 #A99E2D #CEC245 #DBD275 #E8E2A6

Accessibility & contrast

On white

1.84
#CEC245 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#CEC245 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC245
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC245#FFFFFF#000000##000000
##CEC2451.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC34
Deuteranopia (green-blind)
#D7C24D
Tritanopia (blue-blind)
#DDB5A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec245;
/* rgb */ color: rgb(206, 194, 69);
/* oklch */ color: oklch(80.1% 0.143 103.8);
Tailwind
colors: {
  custom: {
    50: '#e0d47f',
    500: '#cec245',
    950: '#000000',
  },
}
SCSS
$custom: #cec245;
$custom-light: #e0d47f;
$custom-dark: #000000;
JSON
{
  "hex": "#cec245",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 69
  },
  "hsl": {
    "h": 54.745,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.80129,
    "c": 0.14312,
    "h": 103.8
  },
  "luminance": 0.52135
}

Semantic roles & 50–950 ramp

primary
#CEC245
secondary
#363D81
accent
#54E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC245

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

Preview Lab → · Contrast checker → · Palette generator →

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