#CCB74E#CCB74E

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

Color values

HEX#CCB74E
RGBrgb(204, 183, 78)
HSLhsl(50, 55%, 55%)
HSVhsv(50, 62%, 80%)
CMYKcmyk(0%, 10.3%, 61.8%, 20%)
CIE-LABlab(74.35, -4.99, 54.71)
CIE-LCHlch(74.35, 54.94, 95.21°)
OKLaboklab(77.72% -0.0177 0.1254)
OKLCHoklch(77.72% 0.127 98)
XYZxyz(43.2123, 47.2563, 14.0515)
Luminance0.4725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB74E #4E63CC
analogous
#CC784E #CCB74E #A2CC4E
triadic
#CCB74E #4ECCB7 #B74ECC
tetradic
#CCB74E #4ECC78 #4E63CC #CC4EA2
square
#CCB74E #4ECC78 #4E63CC #CC4EA2
split-complementary
#CCB74E #4EA2CC #784ECC
monochromatic
#7C6D24 #AB9731 #CCB74E #DACA7E #E7DEAD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCB74E#FFFFFF#000000##000000
##CCB74E1.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)
#C8B342
Deuteranopia (green-blind)
#CDBA53
Tritanopia (blue-blind)
#DBABA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ccb74e;
/* rgb */ color: rgb(204, 183, 78);
/* oklch */ color: oklch(77.7% 0.127 98.0);
Tailwind
colors: {
  custom: {
    50: '#dfcc84',
    500: '#ccb74e',
    950: '#000000',
  },
}
SCSS
$custom: #ccb74e;
$custom-light: #dfcc84;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb74e",
  "rgb": {
    "r": 204,
    "g": 183,
    "b": 78
  },
  "hsl": {
    "h": 50,
    "s": 55.263,
    "l": 55.294
  },
  "oklch": {
    "l": 0.77723,
    "c": 0.12664,
    "h": 98
  },
  "luminance": 0.47254
}

Semantic roles & 50–950 ramp

primary
#CCB74E
secondary
#A1A9D5
accent
#62DF49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCB74E

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

Preview Lab → · Contrast checker → · Palette generator →

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