#CDC27F#CDC27F

#CDC27F is a light, moderate yellow. Relative luminance 0.531; OKLCH L 80.8% C 0.088 H 100.1°. Best body text is #000000 at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#CDC27F
RGBrgb(205, 194, 127)
HSLhsl(52, 44%, 65%)
HSVhsv(52, 38%, 80%)
CMYKcmyk(0%, 5.4%, 38%, 19.6%)
CIE-LABlab(77.93, -5.88, 35.10)
CIE-LCHlch(77.93, 35.59, 99.51°)
OKLaboklab(80.77% -0.0153 0.0863)
OKLCHoklch(80.77% 0.088 100.1)
XYZxyz(48.3002, 53.0964, 27.7789)
Luminance0.5310 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC27F #7F8ACD
analogous
#CD9B7F #CDC27F #B1CD7F
triadic
#CDC27F #7FCDC2 #C27FCD
tetradic
#CDC27F #7FCD9B #7F8ACD #CD7FB1
square
#CDC27F #7FCD9B #7F8ACD #CD7FB1
split-complementary
#CDC27F #7FB1CD #9B7FCD
monochromatic
#978A3B #BCAD53 #CDC27F #DED7AB #EFECD7

Accessibility & contrast

On white

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

On black

11.62
#CDC27F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC27F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC27F#FFFFFF#000000##000000
##CDC27F1.001.8111.6211.62
#FFFFFF1.811.0021.0021.00
#00000011.6221.001.001.00
##00000011.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEBE7A
Deuteranopia (green-blind)
#D1C382
Tritanopia (blue-blind)
#D8B9B1
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc27f;
/* rgb */ color: rgb(205, 194, 127);
/* oklch */ color: oklch(80.8% 0.088 100.1);
Tailwind
colors: {
  custom: {
    50: '#ddd4a5',
    500: '#cdc27f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc27f;
$custom-light: #ddd4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc27f",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 127
  },
  "hsl": {
    "h": 51.538,
    "s": 43.82,
    "l": 65.098
  },
  "oklch": {
    "l": 0.80772,
    "c": 0.08762,
    "h": 100.1
  },
  "luminance": 0.53095
}

Semantic roles & 50–950 ramp

primary
#CDC27F
secondary
#535E9D
accent
#42B72F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC27F

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

Preview Lab → · Contrast checker → · Palette generator →

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