#CAC348#CAC348

#CAC348 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.0% C 0.142 H 106.1°. Best body text is #000000 at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#CAC348
RGBrgb(202, 195, 72)
HSLhsl(57, 55%, 54%)
HSVhsv(57, 64%, 79%)
CMYKcmyk(0%, 3.5%, 64.4%, 20.8%)
CIE-LABlab(77.31, -12.39, 60.41)
CIE-LCHlch(77.31, 61.67, 101.59°)
OKLaboklab(80.02% -0.0393 0.1367)
OKLCHoklch(80.02% 0.142 106.1)
XYZxyz(45.0435, 52.0562, 13.8048)
Luminance0.5205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC348 #484FCA
analogous
#CA8248 #CAC348 #90CA48
triadic
#CAC348 #48CAC3 #C348CA
tetradic
#CAC348 #48CA82 #484FCA #CA4890
square
#CAC348 #48CA82 #484FCA #CA4890
split-complementary
#CAC348 #4890CA #8248CA
monochromatic
#767122 #A59F30 #CAC348 #D8D377 #E5E2A7

Accessibility & contrast

On white

1.84
#CAC348 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.41
#CAC348 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC348
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC348#FFFFFF#000000##000000
##CAC3481.001.8411.4111.41
#FFFFFF1.841.0021.0021.00
#00000011.4121.001.001.00
##00000011.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC38
Deuteranopia (green-blind)
#D6C150
Tritanopia (blue-blind)
#D8B7AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cac348;
/* rgb */ color: rgb(202, 195, 72);
/* oklch */ color: oklch(80.0% 0.142 106.1);
Tailwind
colors: {
  custom: {
    50: '#ddd481',
    500: '#cac348',
    950: '#000000',
  },
}
SCSS
$custom: #cac348;
$custom-light: #ddd481;
$custom-dark: #000000;
JSON
{
  "hex": "#cac348",
  "rgb": {
    "r": 202,
    "g": 195,
    "b": 72
  },
  "hsl": {
    "h": 56.769,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.80017,
    "c": 0.14221,
    "h": 106.1
  },
  "luminance": 0.52055
}

Semantic roles & 50–950 ramp

primary
#CAC348
secondary
#383C7E
accent
#51DE49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC348

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

Preview Lab → · Contrast checker → · Palette generator →

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