#CCB239#CCB239

#CCB239 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.5% C 0.138 H 96.7°. Best body text is #000000 at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#CCB239
RGBrgb(204, 178, 57)
HSLhsl(49, 59%, 51%)
HSVhsv(49, 72%, 80%)
CMYKcmyk(0%, 12.7%, 72.1%, 20%)
CIE-LABlab(72.88, -3.57, 61.92)
CIE-LCHlch(72.88, 62.03, 93.30°)
OKLaboklab(76.5% -0.016 0.1373)
OKLCHoklch(76.5% 0.138 96.7)
XYZxyz(41.5628, 44.9757, 10.3621)
Luminance0.4497 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB239 #3953CC
analogous
#CC6839 #CCB239 #9CCC39
triadic
#CCB239 #39CCB2 #B239CC
tetradic
#CCB239 #39CC68 #3953CC #CC399C
square
#CCB239 #39CC68 #3953CC #CC399C
split-complementary
#CCB239 #399CCC #6839CC
monochromatic
#6E601C #9F8A29 #CCB239 #D9C56A #E5D89A

Accessibility & contrast

On white

2.10
#CCB239 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.99
#CCB239 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB239
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB239#FFFFFF#000000##000000
##CCB2391.002.109.999.99
#FFFFFF2.101.0021.0021.00
#0000009.9921.001.001.00
##0000009.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE26
Deuteranopia (green-blind)
#CBB640
Tritanopia (blue-blind)
#DCA49A
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb239;
/* rgb */ color: rgb(204, 178, 57);
/* oklch */ color: oklch(76.5% 0.138 96.7);
Tailwind
colors: {
  custom: {
    50: '#dfc877',
    500: '#ccb239',
    950: '#000000',
  },
}
SCSS
$custom: #ccb239;
$custom-light: #dfc877;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb239",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 57
  },
  "hsl": {
    "h": 49.388,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.765,
    "c": 0.13818,
    "h": 96.7
  },
  "luminance": 0.44974
}

Semantic roles & 50–950 ramp

primary
#CCB239
secondary
#909BD1
accent
#61E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB239

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

Preview Lab → · Contrast checker → · Palette generator →

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