#CAC148#CAC148

#CAC148 is a light, vivid yellow. Relative luminance 0.512; OKLCH L 79.6% C 0.140 H 105.1°. Best body text is #000000 at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#CAC148
RGBrgb(202, 193, 72)
HSLhsl(56, 55%, 54%)
HSVhsv(56, 64%, 79%)
CMYKcmyk(0%, 4.5%, 64.4%, 20.8%)
CIE-LABlab(76.78, -11.38, 59.85)
CIE-LCHlch(76.78, 60.92, 100.76°)
OKLaboklab(79.59% -0.0365 0.1355)
OKLCHoklch(79.59% 0.14 105.1)
XYZxyz(44.5984, 51.1660, 13.6564)
Luminance0.5116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC148 #4851CA
analogous
#CA8048 #CAC148 #92CA48
triadic
#CAC148 #48CAC1 #C148CA
tetradic
#CAC148 #48CA80 #4851CA #CA4892
square
#CAC148 #48CA80 #4851CA #CA4892
split-complementary
#CAC148 #4892CA #8048CA
monochromatic
#767022 #A59D30 #CAC148 #D8D177 #E5E1A7

Accessibility & contrast

On white

1.87
#CAC148 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.23
#CAC148 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC148
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC148#FFFFFF#000000##000000
##CAC1481.001.8711.2311.23
#FFFFFF1.871.0021.0021.00
#00000011.2321.001.001.00
##00000011.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA38
Deuteranopia (green-blind)
#D4C04F
Tritanopia (blue-blind)
#D8B5A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cac148;
/* rgb */ color: rgb(202, 193, 72);
/* oklch */ color: oklch(79.6% 0.140 105.1);
Tailwind
colors: {
  custom: {
    50: '#ddd381',
    500: '#cac148',
    950: '#000000',
  },
}
SCSS
$custom: #cac148;
$custom-light: #ddd381;
$custom-dark: #000000;
JSON
{
  "hex": "#cac148",
  "rgb": {
    "r": 202,
    "g": 193,
    "b": 72
  },
  "hsl": {
    "h": 55.846,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.79591,
    "c": 0.1403,
    "h": 105.1
  },
  "luminance": 0.51164
}

Semantic roles & 50–950 ramp

primary
#CAC148
secondary
#383D7E
accent
#54DE49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC148

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

Preview Lab → · Contrast checker → · Palette generator →

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