#CBD242#CBD242

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

Color values

HEX#CBD242
RGBrgb(203, 210, 66)
HSLhsl(63, 62%, 54%)
HSVhsv(63, 69%, 82%)
CMYKcmyk(3.3%, 0%, 68.6%, 17.6%)
CIE-LABlab(81.39, -19.81, 66.94)
CIE-LCHlch(81.39, 69.81, 106.48°)
OKLaboklab(83.28% -0.0609 0.1494)
OKLCHoklch(83.28% 0.161 112.2)
XYZxyz(48.6601, 59.1842, 14.0136)
Luminance0.5918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBD242 #4942D2
analogous
#D29142 #CBD242 #83D242
triadic
#CBD242 #42CBD2 #D242CB
tetradic
#CBD242 #42D291 #4942D2 #D24283
square
#CBD242 #42D291 #4942D2 #D24283
split-complementary
#CBD242 #4283D2 #9142D2
monochromatic
#777C1E #A7AD29 #CBD242 #D9DE73 #E6EAA5

Accessibility & contrast

On white

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

On black

12.84
#CBD242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBD242
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBD242#FFFFFF#000000##000000
##CBD2421.001.6412.8412.84
#FFFFFF1.641.0021.0021.00
#00000012.8421.001.001.00
##00000012.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C82B
Deuteranopia (green-blind)
#E2CC4D
Tritanopia (blue-blind)
#D9C5B6
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #cbd242;
/* rgb */ color: rgb(203, 210, 66);
/* oklch */ color: oklch(83.3% 0.161 112.2);
Tailwind
colors: {
  custom: {
    50: '#dedf7f',
    500: '#cbd242',
    950: '#000000',
  },
}
SCSS
$custom: #cbd242;
$custom-light: #dedf7f;
$custom-dark: #000000;
JSON
{
  "hex": "#cbd242",
  "rgb": {
    "r": 203,
    "g": 210,
    "b": 66
  },
  "hsl": {
    "h": 62.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.83278,
    "c": 0.16136,
    "h": 112.2
  },
  "luminance": 0.59183
}

Semantic roles & 50–950 ramp

primary
#CBD242
secondary
#383484
accent
#43E54B
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CBD242

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

Preview Lab → · Contrast checker → · Palette generator →

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