#CCB851#CCB851

#CCB851 is a light, vivid yellow. Relative luminance 0.477; OKLCH L 78.0% C 0.125 H 98.4°. Best body text is #000000 at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#CCB851
RGBrgb(204, 184, 81)
HSLhsl(50, 55%, 56%)
HSVhsv(50, 60%, 80%)
CMYKcmyk(0%, 9.8%, 60.3%, 20%)
CIE-LABlab(74.64, -5.30, 53.68)
CIE-LCHlch(74.64, 53.94, 95.64°)
OKLaboklab(77.96% -0.0182 0.1236)
OKLCHoklch(77.96% 0.125 98.4)
XYZxyz(43.5293, 47.7143, 14.6999)
Luminance0.4771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB851 #5165CC
analogous
#CC7A51 #CCB851 #A2CC51
triadic
#CCB851 #51CCB8 #B851CC
tetradic
#CCB851 #51CC7A #5165CC #CC51A2
square
#CCB851 #51CC7A #5165CC #CC51A2
split-complementary
#CCB851 #51A2CC #7A51CC
monochromatic
#7E6F25 #AD9933 #CCB851 #DACB80 #E8DFB0

Accessibility & contrast

On white

1.99
#CCB851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.54
#CCB851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB851
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB851#FFFFFF#000000##000000
##CCB8511.001.9910.5410.54
#FFFFFF1.991.0021.0021.00
#00000010.5421.001.001.00
##00000010.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B446
Deuteranopia (green-blind)
#CEBB56
Tritanopia (blue-blind)
#DBACA2
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #ccb851;
/* rgb */ color: rgb(204, 184, 81);
/* oklch */ color: oklch(78.0% 0.125 98.4);
Tailwind
colors: {
  custom: {
    50: '#decd86',
    500: '#ccb851',
    950: '#000000',
  },
}
SCSS
$custom: #ccb851;
$custom-light: #decd86;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb851",
  "rgb": {
    "r": 204,
    "g": 184,
    "b": 81
  },
  "hsl": {
    "h": 50.244,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.77962,
    "c": 0.12495,
    "h": 98.4
  },
  "luminance": 0.47712
}

Semantic roles & 50–950 ramp

primary
#CCB851
secondary
#A3ABD6
accent
#62DE4A
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB851

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

Preview Lab → · Contrast checker → · Palette generator →

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