#CFC03B#CFC03B

#CFC03B is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.7% C 0.148 H 102.7°. Best body text is #000000 at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#CFC03B
RGBrgb(207, 192, 59)
HSLhsl(54, 61%, 52%)
HSVhsv(54, 71%, 81%)
CMYKcmyk(0%, 7.2%, 71.5%, 18.8%)
CIE-LABlab(76.85, -9.44, 65.15)
CIE-LCHlch(76.85, 65.83, 98.25°)
OKLaboklab(79.72% -0.0326 0.1443)
OKLCHoklch(79.72% 0.148 102.7)
XYZxyz(45.3732, 51.2824, 11.6453)
Luminance0.5128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC03B #3B4ACF
analogous
#CF763B #CFC03B #94CF3B
triadic
#CFC03B #3BCFC0 #C03BCF
tetradic
#CFC03B #3BCF76 #3B4ACF #CF3B94
square
#CFC03B #3BCF76 #3B4ACF #CF3B94
split-complementary
#CFC03B #3B94CF #763BCF
monochromatic
#736B1C #A59828 #CFC03B #DBD06C #E7E09D

Accessibility & contrast

On white

1.87
#CFC03B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.26
#CFC03B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC03B
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC03B#FFFFFF#000000##000000
##CFC03B1.001.8711.2611.26
#FFFFFF1.871.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA25
Deuteranopia (green-blind)
#D6C144
Tritanopia (blue-blind)
#DFB3A6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cfc03b;
/* rgb */ color: rgb(207, 192, 59);
/* oklch */ color: oklch(79.7% 0.148 102.7);
Tailwind
colors: {
  custom: {
    50: '#e1d27a',
    500: '#cfc03b',
    950: '#000000',
  },
}
SCSS
$custom: #cfc03b;
$custom-light: #e1d27a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc03b",
  "rgb": {
    "r": 207,
    "g": 192,
    "b": 59
  },
  "hsl": {
    "h": 53.919,
    "s": 60.656,
    "l": 52.157
  },
  "oklch": {
    "l": 0.7972,
    "c": 0.14798,
    "h": 102.7
  },
  "luminance": 0.5128
}

Semantic roles & 50–950 ramp

primary
#CFC03B
secondary
#323A7C
accent
#54E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC03B

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

Preview Lab → · Contrast checker → · Palette generator →

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