#CCB138#CCB138

#CCB138 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 76.3% C 0.138 H 96.1°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#CCB138
RGBrgb(204, 177, 56)
HSLhsl(49, 59%, 51%)
HSVhsv(49, 73%, 80%)
CMYKcmyk(0%, 13.2%, 72.5%, 20%)
CIE-LABlab(72.61, -3.10, 62.04)
CIE-LCHlch(72.61, 62.12, 92.86°)
OKLaboklab(76.29% -0.0148 0.1373)
OKLCHoklch(76.29% 0.138 96.1)
XYZxyz(41.3399, 44.5694, 10.1659)
Luminance0.4457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB138 #3853CC
analogous
#CC6738 #CCB138 #9DCC38
triadic
#CCB138 #38CCB1 #B138CC
tetradic
#CCB138 #38CC67 #3853CC #CC389D
square
#CCB138 #38CC67 #3853CC #CC389D
split-complementary
#CCB138 #389DCC #6738CC
monochromatic
#6E5F1C #9E8929 #CCB138 #D8C469 #E5D799

Accessibility & contrast

On white

2.12
#CCB138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.91
#CCB138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB138
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB138#FFFFFF#000000##000000
##CCB1381.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD25
Deuteranopia (green-blind)
#CAB63F
Tritanopia (blue-blind)
#DCA399
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #ccb138;
/* rgb */ color: rgb(204, 177, 56);
/* oklch */ color: oklch(76.3% 0.138 96.1);
Tailwind
colors: {
  custom: {
    50: '#dfc776',
    500: '#ccb138',
    950: '#000000',
  },
}
SCSS
$custom: #ccb138;
$custom-light: #dfc776;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb138",
  "rgb": {
    "r": 204,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 49.054,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.76285,
    "c": 0.13811,
    "h": 96.1
  },
  "luminance": 0.44567
}

Semantic roles & 50–950 ramp

primary
#CCB138
secondary
#8F9BD1
accent
#62E245
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB138

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

Preview Lab → · Contrast checker → · Palette generator →

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