#CCBA3F#CCBA3F

#CCBA3F is a light, vivid yellow. Relative luminance 0.483; OKLCH L 78.2% C 0.140 H 100.8°. Best body text is #000000 at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#CCBA3F
RGBrgb(204, 186, 63)
HSLhsl(52, 58%, 52%)
HSVhsv(52, 69%, 80%)
CMYKcmyk(0%, 8.8%, 69.1%, 20%)
CIE-LABlab(75.02, -7.44, 61.74)
CIE-LCHlch(75.02, 62.18, 96.87°)
OKLaboklab(78.22% -0.0264 0.1379)
OKLCHoklch(78.22% 0.14 100.8)
XYZxyz(43.3599, 48.3160, 11.7436)
Luminance0.4831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBA3F #3F51CC
analogous
#CC733F #CCBA3F #98CC3F
triadic
#CCBA3F #3FCCBA #BA3FCC
tetradic
#CCBA3F #3FCC73 #3F51CC #CC3F98
square
#CCBA3F #3FCC73 #3F51CC #CC3F98
split-complementary
#CCBA3F #3F98CC #733FCC
monochromatic
#72681E #A3932B #CCBA3F #D9CB6F #E6DDA0

Accessibility & contrast

On white

1.97
#CCBA3F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.66
#CCBA3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBA3F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBA3F#FFFFFF#000000##000000
##CCBA3F1.001.9710.6610.66
#FFFFFF1.971.0021.0021.00
#00000010.6621.001.001.00
##00000010.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB52D
Deuteranopia (green-blind)
#D0BC46
Tritanopia (blue-blind)
#DBADA1
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #ccba3f;
/* rgb */ color: rgb(204, 186, 63);
/* oklch */ color: oklch(78.2% 0.140 100.8);
Tailwind
colors: {
  custom: {
    50: '#dfce7b',
    500: '#ccba3f',
    950: '#000000',
  },
}
SCSS
$custom: #ccba3f;
$custom-light: #dfce7b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccba3f",
  "rgb": {
    "r": 204,
    "g": 186,
    "b": 63
  },
  "hsl": {
    "h": 52.34,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.78216,
    "c": 0.14043,
    "h": 100.8
  },
  "luminance": 0.48314
}

Semantic roles & 50–950 ramp

primary
#CCBA3F
secondary
#959DD2
accent
#5AE147
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCBA3F

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

Preview Lab → · Contrast checker → · Palette generator →

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