#CEC274#CEC274

#CEC274 is a light, moderate yellow. Relative luminance 0.530; OKLCH L 80.7% C 0.100 H 100.7°. Best body text is #000000 at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#CEC274
RGBrgb(206, 194, 116)
HSLhsl(52, 48%, 63%)
HSVhsv(52, 44%, 81%)
CMYKcmyk(0%, 5.8%, 43.7%, 19.2%)
CIE-LABlab(77.86, -6.66, 40.64)
CIE-LCHlch(77.86, 41.18, 99.31°)
OKLaboklab(80.68% -0.0185 0.0983)
OKLCHoklch(80.68% 0.1 100.7)
XYZxyz(47.8989, 52.9678, 24.2203)
Luminance0.5297 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC274 #7480CE
analogous
#CE9574 #CEC274 #ADCE74
triadic
#CEC274 #74CEC2 #C274CE
tetradic
#CEC274 #74CE95 #7480CE #CE74AD
square
#CEC274 #74CE95 #7480CE #CE74AD
split-complementary
#CEC274 #74ADCE #9574CE
monochromatic
#948734 #BEAE47 #CEC274 #DED6A1 #EEEACE

Accessibility & contrast

On white

1.81
#CEC274 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.59
#CEC274 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC274
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC274#FFFFFF#000000##000000
##CEC2741.001.8111.5911.59
#FFFFFF1.811.0021.0021.00
#00000011.5921.001.001.00
##00000011.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBE6E
Deuteranopia (green-blind)
#D3C377
Tritanopia (blue-blind)
#DAB8AF
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cec274;
/* rgb */ color: rgb(206, 194, 116);
/* oklch */ color: oklch(80.7% 0.100 100.7);
Tailwind
colors: {
  custom: {
    50: '#ded49d',
    500: '#cec274',
    950: '#000000',
  },
}
SCSS
$custom: #cec274;
$custom-light: #ded49d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec274",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 116
  },
  "hsl": {
    "h": 52,
    "s": 47.872,
    "l": 63.137
  },
  "oklch": {
    "l": 0.8068,
    "c": 0.10004,
    "h": 100.7
  },
  "luminance": 0.52966
}

Semantic roles & 50–950 ramp

primary
#CEC274
secondary
#4D579A
accent
#3EBB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CEC274

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

Preview Lab → · Contrast checker → · Palette generator →

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