#CCB247#CCB247

#CCB247 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.6% C 0.128 H 95.5°. Best body text is #000000 at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#CCB247
RGBrgb(204, 178, 71)
HSLhsl(48, 57%, 54%)
HSVhsv(48, 65%, 80%)
CMYKcmyk(0%, 12.7%, 65.2%, 20%)
CIE-LABlab(72.98, -2.82, 56.31)
CIE-LCHlch(72.98, 56.38, 92.86°)
OKLaboklab(76.62% -0.0123 0.1278)
OKLCHoklch(76.62% 0.128 95.5)
XYZxyz(41.9615, 45.1352, 12.4617)
Luminance0.4513 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB247 #4761CC
analogous
#CC7047 #CCB247 #A4CC47
triadic
#CCB247 #47CCB2 #B247CC
tetradic
#CCB247 #47CC70 #4761CC #CC47A4
square
#CCB247 #47CC70 #4761CC #CC47A4
split-complementary
#CCB247 #47A4CC #7047CC
monochromatic
#776721 #A7902E #CCB247 #D9C677 #E7DAA7

Accessibility & contrast

On white

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

On black

10.03
#CCB247 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB247
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB247#FFFFFF#000000##000000
##CCB2471.002.0910.0310.03
#FFFFFF2.091.0021.0021.00
#00000010.0321.001.001.00
##00000010.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE3A
Deuteranopia (green-blind)
#CAB74C
Tritanopia (blue-blind)
#DCA59B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb247;
/* rgb */ color: rgb(204, 178, 71);
/* oklch */ color: oklch(76.6% 0.128 95.5);
Tailwind
colors: {
  custom: {
    50: '#dfc87f',
    500: '#ccb247',
    950: '#000000',
  },
}
SCSS
$custom: #ccb247;
$custom-light: #dfc87f;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb247",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 71
  },
  "hsl": {
    "h": 48.271,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.76616,
    "c": 0.12836,
    "h": 95.5
  },
  "luminance": 0.45133
}

Semantic roles & 50–950 ramp

primary
#CCB247
secondary
#9BA6D4
accent
#66E048
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB247

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

Preview Lab → · Contrast checker → · Palette generator →

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