#CCB945#CCB945

#CCB945 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 78.1% C 0.135 H 99.9°. Best body text is #000000 at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#CCB945
RGBrgb(204, 185, 69)
HSLhsl(52, 57%, 54%)
HSVhsv(52, 66%, 80%)
CMYKcmyk(0%, 9.3%, 66.2%, 20%)
CIE-LABlab(74.80, -6.59, 59.08)
CIE-LCHlch(74.80, 59.45, 96.36°)
OKLaboklab(78.05% -0.0233 0.1333)
OKLCHoklch(78.05% 0.135 99.9)
XYZxyz(43.3269, 47.9669, 12.6054)
Luminance0.4797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB945 #4558CC
analogous
#CC7545 #CCB945 #9BCC45
triadic
#CCB945 #45CCB9 #B945CC
tetradic
#CCB945 #45CC75 #4558CC #CC459B
square
#CCB945 #45CC75 #4558CC #CC459B
split-complementary
#CCB945 #459BCC #7545CC
monochromatic
#766A20 #A6952E #CCB945 #D9CB75 #E6DDA5

Accessibility & contrast

On white

1.98
#CCB945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.59
#CCB945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB945
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB945#FFFFFF#000000##000000
##CCB9451.001.9810.5910.59
#FFFFFF1.981.0021.0021.00
#00000010.5921.001.001.00
##00000010.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB436
Deuteranopia (green-blind)
#CFBB4C
Tritanopia (blue-blind)
#DBACA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #ccb945;
/* rgb */ color: rgb(204, 185, 69);
/* oklch */ color: oklch(78.1% 0.135 99.9);
Tailwind
colors: {
  custom: {
    50: '#dfcd7e',
    500: '#ccb945',
    950: '#000000',
  },
}
SCSS
$custom: #ccb945;
$custom-light: #dfcd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb945",
  "rgb": {
    "r": 204,
    "g": 185,
    "b": 69
  },
  "hsl": {
    "h": 51.556,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.78055,
    "c": 0.13535,
    "h": 99.9
  },
  "luminance": 0.47965
}

Semantic roles & 50–950 ramp

primary
#CCB945
secondary
#99A2D3
accent
#5DE048
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB945

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

Preview Lab → · Contrast checker → · Palette generator →

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