#CDC262#CDC262

#CDC262 is a light, moderate yellow. Relative luminance 0.524; OKLCH L 80.3% C 0.119 H 102.8°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#CDC262
RGBrgb(205, 194, 98)
HSLhsl(54, 52%, 59%)
HSVhsv(54, 52%, 80%)
CMYKcmyk(0%, 5.4%, 52.2%, 19.6%)
CIE-LABlab(77.55, -8.75, 49.10)
CIE-LCHlch(77.55, 49.87, 100.10°)
OKLaboklab(80.34% -0.0262 0.1156)
OKLCHoklch(80.34% 0.119 102.8)
XYZxyz(46.6746, 52.4461, 19.2174)
Luminance0.5244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC262 #626DCD
analogous
#CD8D62 #CDC262 #A3CD62
triadic
#CDC262 #62CDC2 #C262CD
tetradic
#CDC262 #62CD8D #626DCD #CD62A3
square
#CDC262 #62CD8D #626DCD #CD62A3
split-complementary
#CDC262 #62A3CD #8D62CD
monochromatic
#897F2C #B7AB3A #CDC262 #DCD490 #EBE6BF

Accessibility & contrast

On white

1.83
#CDC262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.49
#CDC262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC262
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC262#FFFFFF#000000##000000
##CDC2621.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BD59
Deuteranopia (green-blind)
#D4C267
Tritanopia (blue-blind)
#DAB7AC
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cdc262;
/* rgb */ color: rgb(205, 194, 98);
/* oklch */ color: oklch(80.3% 0.119 102.8);
Tailwind
colors: {
  custom: {
    50: '#ded491',
    500: '#cdc262',
    950: '#000000',
  },
}
SCSS
$custom: #cdc262;
$custom-light: #ded491;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc262",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 98
  },
  "hsl": {
    "h": 53.832,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.80342,
    "c": 0.11858,
    "h": 102.8
  },
  "luminance": 0.52445
}

Semantic roles & 50–950 ramp

primary
#CDC262
secondary
#434B90
accent
#5BDB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC262

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

Preview Lab → · Contrast checker → · Palette generator →

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