#CFCB38#CFCB38

#CFCB38 is a very light, vivid yellow. Relative luminance 0.563; OKLCH L 82.0% C 0.160 H 107.9°. Best body text is #000000 at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#CFCB38
RGBrgb(207, 203, 56)
HSLhsl(58, 61%, 52%)
HSVhsv(58, 73%, 81%)
CMYKcmyk(0%, 1.9%, 72.9%, 18.8%)
CIE-LABlab(79.76, -15.15, 69.00)
CIE-LCHlch(79.76, 70.64, 102.38°)
OKLaboklab(82.04% -0.049 0.152)
OKLCHoklch(82.04% 0.16 107.9)
XYZxyz(47.8037, 56.2644, 12.0826)
Luminance0.5626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCB38 #383CCF
analogous
#CF8038 #CFCB38 #87CF38
triadic
#CFCB38 #38CFCB #CB38CF
tetradic
#CFCB38 #38CF80 #383CCF #CF3887
square
#CFCB38 #38CF80 #383CCF #CF3887
split-complementary
#CFCB38 #3887CF #8038CF
monochromatic
#716F1B #A39F27 #CFCB38 #DBD869 #E7E59B

Accessibility & contrast

On white

1.71
#CFCB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.25
#CFCB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCB38
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCB38#FFFFFF#000000##000000
##CFCB381.001.7112.2512.25
#FFFFFF1.711.0021.0021.00
#00000012.2521.001.001.00
##00000012.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC31A
Deuteranopia (green-blind)
#DEC843
Tritanopia (blue-blind)
#DEBEAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cfcb38;
/* rgb */ color: rgb(207, 203, 56);
/* oklch */ color: oklch(82.0% 0.160 107.9);
Tailwind
colors: {
  custom: {
    50: '#e1da79',
    500: '#cfcb38',
    950: '#000000',
  },
}
SCSS
$custom: #cfcb38;
$custom-light: #e1da79;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcb38",
  "rgb": {
    "r": 207,
    "g": 203,
    "b": 56
  },
  "hsl": {
    "h": 58.411,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.82035,
    "c": 0.15965,
    "h": 107.9
  },
  "luminance": 0.56263
}

Semantic roles & 50–950 ramp

primary
#CFCB38
secondary
#31337A
accent
#48E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFCB38

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

Preview Lab → · Contrast checker → · Palette generator →

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