#CCB12D#CCB12D

#CCB12D is a light, vivid yellow. Relative luminance 0.445; OKLCH L 76.2% C 0.144 H 96.8°. Best body text is #000000 at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#CCB12D
RGBrgb(204, 177, 45)
HSLhsl(50, 64%, 49%)
HSVhsv(50, 78%, 80%)
CMYKcmyk(0%, 13.2%, 77.9%, 20%)
CIE-LABlab(72.54, -3.56, 65.86)
CIE-LCHlch(72.54, 65.96, 93.09°)
OKLaboklab(76.22% -0.0172 0.1433)
OKLCHoklch(76.22% 0.144 96.8)
XYZxyz(41.0998, 44.4733, 8.9015)
Luminance0.4447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB12D #2D48CC
analogous
#CC622D #CCB12D #98CC2D
triadic
#CCB12D #2DCCB1 #B12DCC
tetradic
#CCB12D #2DCC62 #2D48CC #CC2D98
square
#CCB12D #2DCC62 #2D48CC #CC2D98
split-complementary
#CCB12D #2D98CC #622DCC
monochromatic
#685A17 #9A8522 #CCB12D #DBC55B #E6D78D

Accessibility & contrast

On white

2.12
#CCB12D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.89
#CCB12D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB12D
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB12D#FFFFFF#000000##000000
##CCB12D1.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD0D
Deuteranopia (green-blind)
#CBB636
Tritanopia (blue-blind)
#DDA398
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #ccb12d;
/* rgb */ color: rgb(204, 177, 45);
/* oklch */ color: oklch(76.2% 0.144 96.8);
Tailwind
colors: {
  custom: {
    50: '#e0c771',
    500: '#ccb12d',
    950: '#000000',
  },
}
SCSS
$custom: #ccb12d;
$custom-light: #e0c771;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb12d",
  "rgb": {
    "r": 204,
    "g": 177,
    "b": 45
  },
  "hsl": {
    "h": 49.811,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.76215,
    "c": 0.14434,
    "h": 96.8
  },
  "luminance": 0.44471
}

Semantic roles & 50–950 ramp

primary
#CCB12D
secondary
#8591D0
accent
#5DE741
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #CCB12D

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

Preview Lab → · Contrast checker → · Palette generator →

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