#CCB038#CCB038

#CCB038 is a light, vivid yellow. Relative luminance 0.442; OKLCH L 76.1% C 0.137 H 95.6°. Best body text is #000000 at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#CCB038
RGBrgb(204, 176, 56)
HSLhsl(49, 59%, 51%)
HSVhsv(49, 73%, 80%)
CMYKcmyk(0%, 13.7%, 72.5%, 20%)
CIE-LABlab(72.35, -2.57, 61.78)
CIE-LCHlch(72.35, 61.84, 92.38°)
OKLaboklab(76.08% -0.0133 0.1368)
OKLCHoklch(76.08% 0.137 95.6)
XYZxyz(41.1431, 44.1758, 10.1003)
Luminance0.4417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB038 #3854CC
analogous
#CC6638 #CCB038 #9ECC38
triadic
#CCB038 #38CCB0 #B038CC
tetradic
#CCB038 #38CC66 #3854CC #CC389E
square
#CCB038 #38CC66 #3854CC #CC389E
split-complementary
#CCB038 #389ECC #6638CC
monochromatic
#6E5E1C #9E8829 #CCB038 #D8C369 #E5D799

Accessibility & contrast

On white

2.14
#CCB038 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.83
#CCB038 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB038
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB038#FFFFFF#000000##000000
##CCB0381.002.149.839.83
#FFFFFF2.141.0021.0021.00
#0000009.8321.001.001.00
##0000009.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC25
Deuteranopia (green-blind)
#C9B53F
Tritanopia (blue-blind)
#DCA298
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccb038;
/* rgb */ color: rgb(204, 176, 56);
/* oklch */ color: oklch(76.1% 0.137 95.6);
Tailwind
colors: {
  custom: {
    50: '#e0c776',
    500: '#ccb038',
    950: '#000000',
  },
}
SCSS
$custom: #ccb038;
$custom-light: #e0c776;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb038",
  "rgb": {
    "r": 204,
    "g": 176,
    "b": 56
  },
  "hsl": {
    "h": 48.649,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.76078,
    "c": 0.13741,
    "h": 95.6
  },
  "luminance": 0.44174
}

Semantic roles & 50–950 ramp

primary
#CCB038
secondary
#8F9CD1
accent
#63E245
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB038

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

Preview Lab → · Contrast checker → · Palette generator →

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