#CEC271#CEC271

#CEC271 is a light, moderate yellow. Relative luminance 0.529; OKLCH L 80.6% C 0.103 H 101.0°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#CEC271
RGBrgb(206, 194, 113)
HSLhsl(52, 49%, 63%)
HSVhsv(52, 45%, 81%)
CMYKcmyk(0%, 5.8%, 45.1%, 19.2%)
CIE-LABlab(77.82, -6.96, 42.10)
CIE-LCHlch(77.82, 42.67, 99.39°)
OKLaboklab(80.64% -0.0196 0.1014)
OKLCHoklch(80.64% 0.103 101)
XYZxyz(47.7272, 52.8991, 23.3160)
Luminance0.5290 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC271 #717DCE
analogous
#CE9371 #CEC271 #ACCE71
triadic
#CEC271 #71CEC2 #C271CE
tetradic
#CEC271 #71CE93 #717DCE #CE71AC
square
#CEC271 #71CE93 #717DCE #CE71AC
split-complementary
#CEC271 #71ACCE #9371CE
monochromatic
#928632 #BEAE44 #CEC271 #DED69E #EDE9CC

Accessibility & contrast

On white

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

On black

11.58
#CEC271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC271
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC271#FFFFFF#000000##000000
##CEC2711.001.8111.5811.58
#FFFFFF1.811.0021.0021.00
#00000011.5821.001.001.00
##00000011.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec271;
/* rgb */ color: rgb(206, 194, 113);
/* oklch */ color: oklch(80.6% 0.103 101.0);
Tailwind
colors: {
  custom: {
    50: '#ded49b',
    500: '#cec271',
    950: '#000000',
  },
}
SCSS
$custom: #cec271;
$custom-light: #ded49b;
$custom-dark: #000000;
JSON
{
  "hex": "#cec271",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 113
  },
  "hsl": {
    "h": 52.258,
    "s": 48.691,
    "l": 62.549
  },
  "oklch": {
    "l": 0.80635,
    "c": 0.10327,
    "h": 101
  },
  "luminance": 0.52898
}

Semantic roles & 50–950 ramp

primary
#CEC271
secondary
#4B5598
accent
#3CBC2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CEC271

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

Preview Lab → · Contrast checker → · Palette generator →

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