#CCBA45#CCBA45

#CCBA45 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 78.3% C 0.136 H 100.5°. Best body text is #000000 at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#CCBA45
RGBrgb(204, 186, 69)
HSLhsl(52, 57%, 54%)
HSVhsv(52, 66%, 80%)
CMYKcmyk(0%, 8.8%, 66.2%, 20%)
CIE-LABlab(75.07, -7.11, 59.36)
CIE-LCHlch(75.07, 59.78, 96.83°)
OKLaboklab(78.27% -0.0248 0.1339)
OKLCHoklch(78.27% 0.136 100.5)
XYZxyz(43.5368, 48.3868, 12.6754)
Luminance0.4839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBA45 #4557CC
analogous
#CC7645 #CCBA45 #9ACC45
triadic
#CCBA45 #45CCBA #BA45CC
tetradic
#CCBA45 #45CC76 #4557CC #CC459A
square
#CCBA45 #45CC76 #4557CC #CC459A
split-complementary
#CCBA45 #459ACC #7645CC
monochromatic
#766B20 #A6962E #CCBA45 #D9CC75 #E6DEA5

Accessibility & contrast

On white

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

On black

10.68
#CCBA45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBA45
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBA45#FFFFFF#000000##000000
##CCBA451.001.9710.6810.68
#FFFFFF1.971.0021.0021.00
#00000010.6821.001.001.00
##00000010.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB536
Deuteranopia (green-blind)
#D0BC4C
Tritanopia (blue-blind)
#DBADA2
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #ccba45;
/* rgb */ color: rgb(204, 186, 69);
/* oklch */ color: oklch(78.3% 0.136 100.5);
Tailwind
colors: {
  custom: {
    50: '#dfce7f',
    500: '#ccba45',
    950: '#000000',
  },
}
SCSS
$custom: #ccba45;
$custom-light: #dfce7f;
$custom-dark: #000000;
JSON
{
  "hex": "#ccba45",
  "rgb": {
    "r": 204,
    "g": 186,
    "b": 69
  },
  "hsl": {
    "h": 52,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.78265,
    "c": 0.13618,
    "h": 100.5
  },
  "luminance": 0.48385
}

Semantic roles & 50–950 ramp

primary
#CCBA45
secondary
#99A1D3
accent
#5CE048
background
#FEFCF8
surface
#FCF9EF
border
#D5D2CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCBA45

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

Preview Lab → · Contrast checker → · Palette generator →

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