#CFCB31#CFCB31

#CFCB31 is a light, vivid yellow. Relative luminance 0.562; OKLCH L 82.0% C 0.163 H 108.0°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#CFCB31
RGBrgb(207, 203, 49)
HSLhsl(58, 62%, 50%)
HSVhsv(58, 76%, 81%)
CMYKcmyk(0%, 1.9%, 76.3%, 18.8%)
CIE-LABlab(79.73, -15.43, 71.22)
CIE-LCHlch(79.73, 72.87, 102.23°)
OKLaboklab(81.99% -0.0504 0.1554)
OKLCHoklch(81.99% 0.163 108)
XYZxyz(47.6443, 56.2006, 11.2432)
Luminance0.5620 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCB31 #3135CF
analogous
#CF7C31 #CFCB31 #84CF31
triadic
#CFCB31 #31CFCB #CB31CF
tetradic
#CFCB31 #31CF7C #3135CF #CF3184
square
#CFCB31 #31CF7C #3135CF #CF3184
split-complementary
#CFCB31 #3184CF #7C31CF
monochromatic
#6C6A19 #9E9B25 #CFCB31 #DBD863 #E6E494

Accessibility & contrast

On white

1.72
#CFCB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.24
#CFCB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCB31
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCB31#FFFFFF#000000##000000
##CFCB311.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC304
Deuteranopia (green-blind)
#DFC83E
Tritanopia (blue-blind)
#DEBDAE
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cfcb31;
/* rgb */ color: rgb(207, 203, 49);
/* oklch */ color: oklch(82.0% 0.163 108.0);
Tailwind
colors: {
  custom: {
    50: '#e2da76',
    500: '#cfcb31',
    950: '#000000',
  },
}
SCSS
$custom: #cfcb31;
$custom-light: #e2da76;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcb31",
  "rgb": {
    "r": 207,
    "g": 203,
    "b": 49
  },
  "hsl": {
    "h": 58.481,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.81995,
    "c": 0.16336,
    "h": 108
  },
  "luminance": 0.56199
}

Semantic roles & 50–950 ramp

primary
#CFCB31
secondary
#2E3076
accent
#47E543
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CFCB31

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

Preview Lab → · Contrast checker → · Palette generator →

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