#CCBF40#CCBF40

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

Color values

HEX#CCBF40
RGBrgb(204, 191, 64)
HSLhsl(54, 58%, 53%)
HSVhsv(54, 69%, 80%)
CMYKcmyk(0%, 6.4%, 68.6%, 20%)
CIE-LABlab(76.36, -9.96, 62.69)
CIE-LCHlch(76.36, 63.47, 99.03°)
OKLaboklab(79.28% -0.0334 0.1401)
OKLCHoklch(79.28% 0.144 103.4)
XYZxyz(44.4599, 50.4709, 12.2494)
Luminance0.5047 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBF40 #404DCC
analogous
#CC7940 #CCBF40 #93CC40
triadic
#CCBF40 #40CCBF #BF40CC
tetradic
#CCBF40 #40CC79 #404DCC #CC4093
square
#CCBF40 #40CC79 #404DCC #CC4093
split-complementary
#CCBF40 #4093CC #7940CC
monochromatic
#736B1F #A3982C #CCBF40 #D9CF70 #E6DFA1

Accessibility & contrast

On white

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

On black

11.09
#CCBF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBF40
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBF40#FFFFFF#000000##000000
##CCBF401.001.8911.0911.09
#FFFFFF1.891.0021.0021.00
#00000011.0921.001.001.00
##00000011.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B92D
Deuteranopia (green-blind)
#D4BF48
Tritanopia (blue-blind)
#DBB2A5
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #ccbf40;
/* rgb */ color: rgb(204, 191, 64);
/* oklch */ color: oklch(79.3% 0.144 103.4);
Tailwind
colors: {
  custom: {
    50: '#dfd27c',
    500: '#ccbf40',
    950: '#000000',
  },
}
SCSS
$custom: #ccbf40;
$custom-light: #dfd27c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccbf40",
  "rgb": {
    "r": 204,
    "g": 191,
    "b": 64
  },
  "hsl": {
    "h": 54.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.79277,
    "c": 0.14404,
    "h": 103.4
  },
  "luminance": 0.50469
}

Semantic roles & 50–950 ramp

primary
#CCBF40
secondary
#343B7C
accent
#55E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCBF40

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

Preview Lab → · Contrast checker → · Palette generator →

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