#CCBA40#CCBA40

#CCBA40 is a light, vivid yellow. Relative luminance 0.483; OKLCH L 78.2% C 0.140 H 100.8°. Best body text is #000000 at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#CCBA40
RGBrgb(204, 186, 64)
HSLhsl(52, 58%, 53%)
HSVhsv(52, 69%, 80%)
CMYKcmyk(0%, 8.8%, 68.6%, 20%)
CIE-LABlab(75.03, -7.39, 61.35)
CIE-LCHlch(75.03, 61.79, 96.87°)
OKLaboklab(78.22% -0.0261 0.1373)
OKLCHoklch(78.22% 0.14 100.8)
XYZxyz(43.3881, 48.3273, 11.8922)
Luminance0.4833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBA40 #4052CC
analogous
#CC7440 #CCBA40 #98CC40
triadic
#CCBA40 #40CCBA #BA40CC
tetradic
#CCBA40 #40CC74 #4052CC #CC4098
square
#CCBA40 #40CC74 #4052CC #CC4098
split-complementary
#CCBA40 #4098CC #7440CC
monochromatic
#73681F #A3942C #CCBA40 #D9CB70 #E6DDA1

Accessibility & contrast

On white

1.97
#CCBA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.67
#CCBA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBA40
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBA40#FFFFFF#000000##000000
##CCBA401.001.9710.6710.67
#FFFFFF1.971.0021.0021.00
#00000010.6721.001.001.00
##00000010.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB52F
Deuteranopia (green-blind)
#D0BC47
Tritanopia (blue-blind)
#DBADA1
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #ccba40;
/* rgb */ color: rgb(204, 186, 64);
/* oklch */ color: oklch(78.2% 0.140 100.8);
Tailwind
colors: {
  custom: {
    50: '#dfce7c',
    500: '#ccba40',
    950: '#000000',
  },
}
SCSS
$custom: #ccba40;
$custom-light: #dfce7c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccba40",
  "rgb": {
    "r": 204,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 52.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.78223,
    "c": 0.13974,
    "h": 100.8
  },
  "luminance": 0.48325
}

Semantic roles & 50–950 ramp

primary
#CCBA40
secondary
#959DD2
accent
#5BE147
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCBA40

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

Preview Lab → · Contrast checker → · Palette generator →

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