#CBCF31#CBCF31

#CBCF31 is a very light, vivid yellow. Relative luminance 0.575; OKLCH L 82.5% C 0.168 H 111.1°. Best body text is #000000 at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#CBCF31
RGBrgb(203, 207, 49)
HSLhsl(62, 62%, 50%)
HSVhsv(62, 76%, 81%)
CMYKcmyk(1.9%, 0%, 76.3%, 18.8%)
CIE-LABlab(80.49, -19.11, 71.79)
CIE-LCHlch(80.49, 74.29, 104.90°)
OKLaboklab(82.52% -0.0604 0.1568)
OKLCHoklch(82.52% 0.168 111.1)
XYZxyz(47.4975, 57.5452, 11.5104)
Luminance0.5754 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBCF31 #3531CF
analogous
#CF8431 #CBCF31 #7CCF31
triadic
#CBCF31 #31CBCF #CF31CB
tetradic
#CBCF31 #31CF84 #3531CF #CF317C
square
#CBCF31 #31CF84 #3531CF #CF317C
split-complementary
#CBCF31 #317CCF #8431CF
monochromatic
#6A6C19 #9B9E25 #CBCF31 #D8DB63 #E4E694

Accessibility & contrast

On white

1.68
#CBCF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.51
#CBCF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBCF31
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBCF31#FFFFFF#000000##000000
##CBCF311.001.6812.5112.51
#FFFFFF1.681.0021.0021.00
#00000012.5121.001.001.00
##00000012.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC600
Deuteranopia (green-blind)
#E1CA3F
Tritanopia (blue-blind)
#D9C2B2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cbcf31;
/* rgb */ color: rgb(203, 207, 49);
/* oklch */ color: oklch(82.5% 0.168 111.1);
Tailwind
colors: {
  custom: {
    50: '#dfdd76',
    500: '#cbcf31',
    950: '#000000',
  },
}
SCSS
$custom: #cbcf31;
$custom-light: #dfdd76;
$custom-dark: #000000;
JSON
{
  "hex": "#cbcf31",
  "rgb": {
    "r": 203,
    "g": 207,
    "b": 49
  },
  "hsl": {
    "h": 61.519,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.82522,
    "c": 0.16801,
    "h": 111.1
  },
  "luminance": 0.57544
}

Semantic roles & 50–950 ramp

primary
#CBCF31
secondary
#302E76
accent
#43E547
background
#FEFEFB
surface
#FCFCF1
border
#D5D5CB
text
#161509
muted
#84847D

Preview Lab

Preview with #CBCF31

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

Preview Lab → · Contrast checker → · Palette generator →

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