#CCB848#CCB848

#CCB848 is a light, vivid yellow. Relative luminance 0.476; OKLCH L 77.9% C 0.132 H 99.1°. Best body text is #000000 at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#CCB848
RGBrgb(204, 184, 72)
HSLhsl(51, 56%, 54%)
HSVhsv(51, 65%, 80%)
CMYKcmyk(0%, 9.8%, 64.7%, 20%)
CIE-LABlab(74.56, -5.89, 57.57)
CIE-LCHlch(74.56, 57.87, 95.84°)
OKLaboklab(77.87% -0.021 0.1306)
OKLCHoklch(77.87% 0.132 99.1)
XYZxyz(43.2139, 47.5882, 13.0388)
Luminance0.4759 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB848 #485CCC
analogous
#CC7648 #CCB848 #9ECC48
triadic
#CCB848 #48CCB8 #B848CC
tetradic
#CCB848 #48CC76 #485CCC #CC489E
square
#CCB848 #48CC76 #485CCC #CC489E
split-complementary
#CCB848 #489ECC #7648CC
monochromatic
#786B21 #A8962F #CCB848 #D9CB78 #E7DDA8

Accessibility & contrast

On white

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

On black

10.52
#CCB848 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB848
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB848#FFFFFF#000000##000000
##CCB8481.002.0010.5210.52
#FFFFFF2.001.0021.0021.00
#00000010.5221.001.001.00
##00000010.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccb848;
/* rgb */ color: rgb(204, 184, 72);
/* oklch */ color: oklch(77.9% 0.132 99.1);
Tailwind
colors: {
  custom: {
    50: '#dfcd80',
    500: '#ccb848',
    950: '#000000',
  },
}
SCSS
$custom: #ccb848;
$custom-light: #dfcd80;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb848",
  "rgb": {
    "r": 204,
    "g": 184,
    "b": 72
  },
  "hsl": {
    "h": 50.909,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.77873,
    "c": 0.13225,
    "h": 99.1
  },
  "luminance": 0.47586
}

Semantic roles & 50–950 ramp

primary
#CCB848
secondary
#9CA4D4
accent
#5FE048
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB848

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

Preview Lab → · Contrast checker → · Palette generator →

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