#CCB256#CCB256

#CCB256 is a light, moderate yellow. Relative luminance 0.454; OKLCH L 76.8% C 0.116 H 93.7°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#CCB256
RGBrgb(204, 178, 86)
HSLhsl(47, 54%, 57%)
HSVhsv(47, 58%, 80%)
CMYKcmyk(0%, 12.7%, 57.8%, 20%)
CIE-LABlab(73.12, -1.80, 49.64)
CIE-LCHlch(73.12, 49.68, 92.07°)
OKLaboklab(76.78% -0.0075 0.1156)
OKLCHoklch(76.78% 0.116 93.7)
XYZxyz(42.5037, 45.3521, 15.3173)
Luminance0.4535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB256 #5670CC
analogous
#CC7756 #CCB256 #ABCC56
triadic
#CCB256 #56CCB2 #B256CC
tetradic
#CCB256 #56CC77 #5670CC #CC56AB
square
#CCB256 #56CC77 #5670CC #CC56AB
split-complementary
#CCB256 #56ABCC #7756CC
monochromatic
#816D27 #B09535 #CCB256 #DAC785 #E8DDB4

Accessibility & contrast

On white

2.09
#CCB256 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.07
#CCB256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB256
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB256#FFFFFF#000000##000000
##CCB2561.002.0910.0710.07
#FFFFFF2.091.0021.0021.00
#00000010.0721.001.001.00
##00000010.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AF4D
Deuteranopia (green-blind)
#C9B75A
Tritanopia (blue-blind)
#DBA69D
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb256;
/* rgb */ color: rgb(204, 178, 86);
/* oklch */ color: oklch(76.8% 0.116 93.7);
Tailwind
colors: {
  custom: {
    50: '#dec888',
    500: '#ccb256',
    950: '#000000',
  },
}
SCSS
$custom: #ccb256;
$custom-light: #dec888;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb256",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 86
  },
  "hsl": {
    "h": 46.78,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.76775,
    "c": 0.11582,
    "h": 93.7
  },
  "luminance": 0.4535
}

Semantic roles & 50–950 ramp

primary
#CCB256
secondary
#A7B1D7
accent
#6BDD4B
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#15130C
muted
#84827D

Preview Lab

Preview with #CCB256

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

Preview Lab → · Contrast checker → · Palette generator →

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