#CCB74F#CCB74F

#CCB74F is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.7% C 0.126 H 97.9°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#CCB74F
RGBrgb(204, 183, 79)
HSLhsl(50, 55%, 55%)
HSVhsv(50, 61%, 80%)
CMYKcmyk(0%, 10.3%, 61.3%, 20%)
CIE-LABlab(74.36, -4.92, 54.27)
CIE-LCHlch(74.36, 54.50, 95.18°)
OKLaboklab(77.73% -0.0174 0.1246)
OKLCHoklch(77.73% 0.126 97.9)
XYZxyz(43.2484, 47.2708, 14.2417)
Luminance0.4727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB74F #4F64CC
analogous
#CC784F #CCB74F #A2CC4F
triadic
#CCB74F #4FCCB7 #B74FCC
tetradic
#CCB74F #4FCC78 #4F64CC #CC4FA2
square
#CCB74F #4FCC78 #4F64CC #CC4FA2
split-complementary
#CCB74F #4FA2CC #784FCC
monochromatic
#7D6E24 #AC9732 #CCB74F #DACA7E #E7DEAE

Accessibility & contrast

On white

2.01
#CCB74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#CCB74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB74F
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB74F#FFFFFF#000000##000000
##CCB74F1.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B344
Deuteranopia (green-blind)
#CDBA54
Tritanopia (blue-blind)
#DBABA1
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb74f;
/* rgb */ color: rgb(204, 183, 79);
/* oklch */ color: oklch(77.7% 0.126 97.9);
Tailwind
colors: {
  custom: {
    50: '#decc84',
    500: '#ccb74f',
    950: '#000000',
  },
}
SCSS
$custom: #ccb74f;
$custom-light: #decc84;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb74f",
  "rgb": {
    "r": 204,
    "g": 183,
    "b": 79
  },
  "hsl": {
    "h": 49.92,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.77733,
    "c": 0.12581,
    "h": 97.9
  },
  "luminance": 0.47269
}

Semantic roles & 50–950 ramp

primary
#CCB74F
secondary
#A1AAD5
accent
#62DE49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB74F

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

Preview Lab → · Contrast checker → · Palette generator →

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