#CBD240#CBD240

#CBD240 is a very light, vivid yellow. Relative luminance 0.592; OKLCH L 83.3% C 0.163 H 112.2°. Best body text is #000000 at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#CBD240
RGBrgb(203, 210, 64)
HSLhsl(63, 62%, 54%)
HSVhsv(63, 70%, 82%)
CMYKcmyk(3.3%, 0%, 69.5%, 17.6%)
CIE-LABlab(81.38, -19.91, 67.66)
CIE-LCHlch(81.38, 70.53, 106.40°)
OKLaboklab(83.26% -0.0613 0.1506)
OKLCHoklch(83.26% 0.163 112.2)
XYZxyz(48.6021, 59.1610, 13.7085)
Luminance0.5916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBD240 #4740D2
analogous
#D29040 #CBD240 #82D240
triadic
#CBD240 #40CBD2 #D240CB
tetradic
#CBD240 #40D290 #4740D2 #D24082
square
#CBD240 #40D290 #4740D2 #D24082
split-complementary
#CBD240 #4082D2 #9040D2
monochromatic
#767B1D #A6AC29 #CBD240 #D8DE72 #E6E9A3

Accessibility & contrast

On white

1.64
#CBD240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.83
#CBD240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBD240
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBD240#FFFFFF#000000##000000
##CBD2401.001.6412.8312.83
#FFFFFF1.641.0021.0021.00
#00000012.8321.001.001.00
##00000012.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C827
Deuteranopia (green-blind)
#E2CC4B
Tritanopia (blue-blind)
#D9C5B5
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #cbd240;
/* rgb */ color: rgb(203, 210, 64);
/* oklch */ color: oklch(83.3% 0.163 112.2);
Tailwind
colors: {
  custom: {
    50: '#dedf7e',
    500: '#cbd240',
    950: '#000000',
  },
}
SCSS
$custom: #cbd240;
$custom-light: #dedf7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cbd240",
  "rgb": {
    "r": 203,
    "g": 210,
    "b": 64
  },
  "hsl": {
    "h": 62.877,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.83264,
    "c": 0.16263,
    "h": 112.2
  },
  "luminance": 0.5916
}

Semantic roles & 50–950 ramp

primary
#CBD240
secondary
#373483
accent
#43E54B
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CBD240

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

Preview Lab → · Contrast checker → · Palette generator →

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