#CBD940#CBD940

#CBD940 is a very light, vivid yellow. Relative luminance 0.627; OKLCH L 84.8% C 0.170 H 114.6°. Best body text is #000000 at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#CBD940
RGBrgb(203, 217, 64)
HSLhsl(65, 67%, 55%)
HSVhsv(65, 71%, 85%)
CMYKcmyk(6.5%, 0%, 70.5%, 14.9%)
CIE-LABlab(83.28, -23.32, 69.52)
CIE-LCHlch(83.28, 73.33, 108.54°)
OKLaboklab(84.79% -0.0708 0.1546)
OKLCHoklch(84.79% 0.17 114.6)
XYZxyz(50.3683, 62.6933, 14.2972)
Luminance0.6269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBD940 #4E40D9
analogous
#D99A40 #CBD940 #7FD940
triadic
#CBD940 #40CBD9 #D940CB
tetradic
#CBD940 #40D99A #4E40D9 #D9407F
square
#CBD940 #40D99A #4E40D9 #D9407F
split-complementary
#CBD940 #407FD9 #9A40D9
monochromatic
#7B841A #AAB724 #CBD940 #D9E373 #E7EDA6

Accessibility & contrast

On white

1.55
#CBD940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.54
#CBD940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBD940
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBD940#FFFFFF#000000##000000
##CBD9401.001.5513.5413.54
#FFFFFF1.551.0021.0021.00
#00000013.5421.001.001.00
##00000013.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE25
Deuteranopia (green-blind)
#E8D14C
Tritanopia (blue-blind)
#D8CCBB
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #cbd940;
/* rgb */ color: rgb(203, 217, 64);
/* oklch */ color: oklch(84.8% 0.170 114.6);
Tailwind
colors: {
  custom: {
    50: '#dee47f',
    500: '#cbd940',
    950: '#000000',
  },
}
SCSS
$custom: #cbd940;
$custom-light: #dee47f;
$custom-dark: #000000;
JSON
{
  "hex": "#cbd940",
  "rgb": {
    "r": 203,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 65.49,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84787,
    "c": 0.17001,
    "h": 114.6
  },
  "luminance": 0.62692
}

Semantic roles & 50–950 ramp

primary
#CBD940
secondary
#3A328B
accent
#3EEA4E
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CBD940

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

Preview Lab → · Contrast checker → · Palette generator →

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