#CDC268#CDC268

#CDC268 is a light, moderate yellow. Relative luminance 0.526; OKLCH L 80.4% C 0.113 H 102.4°. Best body text is #000000 at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#CDC268
RGBrgb(205, 194, 104)
HSLhsl(53, 50%, 61%)
HSVhsv(53, 49%, 80%)
CMYKcmyk(0%, 5.4%, 49.3%, 19.6%)
CIE-LABlab(77.62, -8.22, 46.29)
CIE-LCHlch(77.62, 47.01, 100.07°)
OKLaboklab(80.42% -0.0241 0.11)
OKLCHoklch(80.42% 0.113 102.4)
XYZxyz(46.9686, 52.5637, 20.7657)
Luminance0.5256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC268 #6873CD
analogous
#CD8F68 #CDC268 #A6CD68
triadic
#CDC268 #68CDC2 #C268CD
tetradic
#CDC268 #68CD8F #6873CD #CD68A6
square
#CDC268 #68CD8F #6873CD #CD68A6
split-complementary
#CDC268 #68A6CD #8F68CD
monochromatic
#8C822E #BAAD3E #CDC268 #DCD596 #EBE7C4

Accessibility & contrast

On white

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

On black

11.51
#CDC268 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC268
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC268#FFFFFF#000000##000000
##CDC2681.001.8211.5111.51
#FFFFFF1.821.0021.0021.00
#00000011.5121.001.001.00
##00000011.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BD60
Deuteranopia (green-blind)
#D4C26C
Tritanopia (blue-blind)
#DAB7AD
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cdc268;
/* rgb */ color: rgb(205, 194, 104);
/* oklch */ color: oklch(80.4% 0.113 102.4);
Tailwind
colors: {
  custom: {
    50: '#ded495',
    500: '#cdc268',
    950: '#000000',
  },
}
SCSS
$custom: #cdc268;
$custom-light: #ded495;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc268",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 104
  },
  "hsl": {
    "h": 53.465,
    "s": 50.249,
    "l": 60.588
  },
  "oklch": {
    "l": 0.8042,
    "c": 0.11263,
    "h": 102.4
  },
  "luminance": 0.52562
}

Semantic roles & 50–950 ramp

primary
#CDC268
secondary
#464F93
accent
#38BE28
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC268

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

Preview Lab → · Contrast checker → · Palette generator →

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