#CAC830#CAC830

#CAC830 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 80.9% C 0.162 H 108.7°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#CAC830
RGBrgb(202, 200, 48)
HSLhsl(59, 62%, 49%)
HSVhsv(59, 76%, 79%)
CMYKcmyk(0%, 1%, 76.2%, 20.8%)
CIE-LABlab(78.51, -16.09, 70.27)
CIE-LCHlch(78.51, 72.08, 102.90°)
OKLaboklab(80.92% -0.0521 0.1534)
OKLCHoklch(80.92% 0.162 108.7)
XYZxyz(45.5467, 54.0800, 10.8350)
Luminance0.5408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC830 #3032CA
analogous
#CA7B30 #CAC830 #7FCA30
triadic
#CAC830 #30CAC8 #C830CA
tetradic
#CAC830 #30CA7B #3032CA #CA307F
square
#CAC830 #30CA7B #3032CA #CA307F
split-complementary
#CAC830 #307FCA #7B30CA
monochromatic
#676618 #999724 #CAC830 #D9D75E #E5E390

Accessibility & contrast

On white

1.78
#CAC830 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.82
#CAC830 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC830
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC830#FFFFFF#000000##000000
##CAC8301.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C003
Deuteranopia (green-blind)
#DBC53D
Tritanopia (blue-blind)
#D9BBAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac830;
/* rgb */ color: rgb(202, 200, 48);
/* oklch */ color: oklch(80.9% 0.162 108.7);
Tailwind
colors: {
  custom: {
    50: '#ded875',
    500: '#cac830',
    950: '#000000',
  },
}
SCSS
$custom: #cac830;
$custom-light: #ded875;
$custom-dark: #000000;
JSON
{
  "hex": "#cac830",
  "rgb": {
    "r": 202,
    "g": 200,
    "b": 48
  },
  "hsl": {
    "h": 59.221,
    "s": 61.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.80921,
    "c": 0.16197,
    "h": 108.7
  },
  "luminance": 0.54079
}

Semantic roles & 50–950 ramp

primary
#CAC830
secondary
#2D2E71
accent
#45E543
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC830

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

Preview Lab → · Contrast checker → · Palette generator →

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