#CCBF42#CCBF42

#CCBF42 is a light, vivid yellow. Relative luminance 0.505; OKLCH L 79.3% C 0.143 H 103.3°. Best body text is #000000 at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#CCBF42
RGBrgb(204, 191, 66)
HSLhsl(54, 58%, 53%)
HSVhsv(54, 68%, 80%)
CMYKcmyk(0%, 6.4%, 67.6%, 20%)
CIE-LABlab(76.37, -9.85, 61.92)
CIE-LCHlch(76.37, 62.70, 99.04°)
OKLaboklab(79.29% -0.0329 0.1388)
OKLCHoklch(79.29% 0.143 103.3)
XYZxyz(44.5178, 50.4941, 12.5546)
Luminance0.5049 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBF42 #424FCC
analogous
#CC7A42 #CCBF42 #94CC42
triadic
#CCBF42 #42CCBF #BF42CC
tetradic
#CCBF42 #42CC7A #424FCC #CC4294
square
#CCBF42 #42CC7A #424FCC #CC4294
split-complementary
#CCBF42 #4294CC #7A42CC
monochromatic
#746C1F #A4992C #CCBF42 #D9CF72 #E6E0A2

Accessibility & contrast

On white

1.89
#CCBF42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.10
#CCBF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBF42
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBF42#FFFFFF#000000##000000
##CCBF421.001.8911.1011.10
#FFFFFF1.891.0021.0021.00
#00000011.1021.001.001.00
##00000011.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B930
Deuteranopia (green-blind)
#D4BF4A
Tritanopia (blue-blind)
#DBB2A6
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #ccbf42;
/* rgb */ color: rgb(204, 191, 66);
/* oklch */ color: oklch(79.3% 0.143 103.3);
Tailwind
colors: {
  custom: {
    50: '#dfd27d',
    500: '#ccbf42',
    950: '#000000',
  },
}
SCSS
$custom: #ccbf42;
$custom-light: #dfd27d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccbf42",
  "rgb": {
    "r": 204,
    "g": 191,
    "b": 66
  },
  "hsl": {
    "h": 54.348,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.79293,
    "c": 0.14267,
    "h": 103.3
  },
  "luminance": 0.50492
}

Semantic roles & 50–950 ramp

primary
#CCBF42
secondary
#353C7D
accent
#56E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCBF42

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

Preview Lab → · Contrast checker → · Palette generator →

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