#CDC271#CDC271

#CDC271 is a light, moderate yellow. Relative luminance 0.528; OKLCH L 80.5% C 0.103 H 101.6°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#CDC271
RGBrgb(205, 194, 113)
HSLhsl(53, 48%, 62%)
HSVhsv(53, 45%, 80%)
CMYKcmyk(0%, 5.4%, 44.9%, 19.6%)
CIE-LABlab(77.73, -7.37, 41.97)
CIE-LCHlch(77.73, 42.61, 99.95°)
OKLaboklab(80.55% -0.0208 0.1011)
OKLCHoklch(80.55% 0.103 101.6)
XYZxyz(47.4504, 52.7564, 23.3031)
Luminance0.5275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC271 #717CCD
analogous
#CD9471 #CDC271 #AACD71
triadic
#CDC271 #71CDC2 #C271CD
tetradic
#CDC271 #71CD94 #717CCD #CD71AA
square
#CDC271 #71CD94 #717CCD #CD71AA
split-complementary
#CDC271 #71AACD #9471CD
monochromatic
#918533 #BDAF44 #CDC271 #DDD59E #EDE9CC

Accessibility & contrast

On white

1.82
#CDC271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.55
#CDC271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC271
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC271#FFFFFF#000000##000000
##CDC2711.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBD6A
Deuteranopia (green-blind)
#D3C274
Tritanopia (blue-blind)
#D9B8AF
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cdc271;
/* rgb */ color: rgb(205, 194, 113);
/* oklch */ color: oklch(80.5% 0.103 101.6);
Tailwind
colors: {
  custom: {
    50: '#ded49b',
    500: '#cdc271',
    950: '#000000',
  },
}
SCSS
$custom: #cdc271;
$custom-light: #ded49b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc271",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 113
  },
  "hsl": {
    "h": 52.826,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.80547,
    "c": 0.10323,
    "h": 101.6
  },
  "luminance": 0.52755
}

Semantic roles & 50–950 ramp

primary
#CDC271
secondary
#4B5497
accent
#3CBB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC271

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

Preview Lab → · Contrast checker → · Palette generator →

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