#CCB845#CCB845

#CCB845 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.8% C 0.135 H 99.3°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#CCB845
RGBrgb(204, 184, 69)
HSLhsl(51, 57%, 54%)
HSVhsv(51, 66%, 80%)
CMYKcmyk(0%, 9.8%, 66.2%, 20%)
CIE-LABlab(74.54, -6.07, 58.81)
CIE-LCHlch(74.54, 59.12, 95.89°)
OKLaboklab(77.85% -0.0218 0.1327)
OKLCHoklch(77.85% 0.135 99.3)
XYZxyz(43.1184, 47.5500, 12.5359)
Luminance0.4755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB845 #4559CC
analogous
#CC7445 #CCB845 #9CCC45
triadic
#CCB845 #45CCB8 #B845CC
tetradic
#CCB845 #45CC74 #4559CC #CC459C
square
#CCB845 #45CC74 #4559CC #CC459C
split-complementary
#CCB845 #459CCC #7445CC
monochromatic
#766920 #A6942E #CCB845 #D9CA75 #E6DDA5

Accessibility & contrast

On white

2.00
#CCB845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.51
#CCB845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB845
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB845#FFFFFF#000000##000000
##CCB8451.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B336
Deuteranopia (green-blind)
#CFBB4B
Tritanopia (blue-blind)
#DBABA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb845;
/* rgb */ color: rgb(204, 184, 69);
/* oklch */ color: oklch(77.8% 0.135 99.3);
Tailwind
colors: {
  custom: {
    50: '#dfcd7e',
    500: '#ccb845',
    950: '#000000',
  },
}
SCSS
$custom: #ccb845;
$custom-light: #dfcd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb845",
  "rgb": {
    "r": 204,
    "g": 184,
    "b": 69
  },
  "hsl": {
    "h": 51.111,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.77846,
    "c": 0.13452,
    "h": 99.3
  },
  "luminance": 0.47548
}

Semantic roles & 50–950 ramp

primary
#CCB845
secondary
#99A2D3
accent
#5EE048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB845

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

Preview Lab → · Contrast checker → · Palette generator →

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