#CEC65F#CEC65F

#CEC65F is a light, vivid yellow. Relative luminance 0.543; OKLCH L 81.2% C 0.125 H 104.8°. Best body text is #000000 at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#CEC65F
RGBrgb(206, 198, 95)
HSLhsl(56, 53%, 59%)
HSVhsv(56, 54%, 81%)
CMYKcmyk(0%, 3.9%, 53.9%, 19.2%)
CIE-LABlab(78.66, -10.63, 51.84)
CIE-LCHlch(78.66, 52.92, 101.59°)
OKLaboklab(81.23% -0.032 0.1213)
OKLCHoklch(81.23% 0.125 104.8)
XYZxyz(47.7147, 54.3377, 18.7991)
Luminance0.5434 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC65F #5F67CE
analogous
#CE8F5F #CEC65F #9FCE5F
triadic
#CEC65F #5FCEC6 #C65FCE
tetradic
#CEC65F #5FCE8F #5F67CE #CE5F9F
square
#CEC65F #5FCE8F #5F67CE #CE5F9F
split-complementary
#CEC65F #5F9FCE #8F5FCE
monochromatic
#89822A #B8AE38 #CEC65F #DCD78E #EBE7BD

Accessibility & contrast

On white

1.77
#CEC65F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.87
#CEC65F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC65F
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC65F#FFFFFF#000000##000000
##CEC65F1.001.7711.8711.87
#FFFFFF1.771.0021.0021.00
#00000011.8721.001.001.00
##00000011.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C055
Deuteranopia (green-blind)
#D8C564
Tritanopia (blue-blind)
#DBBBAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec65f;
/* rgb */ color: rgb(206, 198, 95);
/* oklch */ color: oklch(81.2% 0.125 104.8);
Tailwind
colors: {
  custom: {
    50: '#dfd78f',
    500: '#cec65f',
    950: '#000000',
  },
}
SCSS
$custom: #cec65f;
$custom-light: #dfd78f;
$custom-dark: #000000;
JSON
{
  "hex": "#cec65f",
  "rgb": {
    "r": 206,
    "g": 198,
    "b": 95
  },
  "hsl": {
    "h": 55.676,
    "s": 53.11,
    "l": 59.02
  },
  "oklch": {
    "l": 0.81234,
    "c": 0.12542,
    "h": 104.8
  },
  "luminance": 0.54336
}

Semantic roles & 50–950 ramp

primary
#CEC65F
secondary
#42478F
accent
#56DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC65F

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

Preview Lab → · Contrast checker → · Palette generator →

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