#CAC038#CAC038

#CAC038 is a light, vivid yellow. Relative luminance 0.505; OKLCH L 79.3% C 0.150 H 105.1°. Best body text is #000000 at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#CAC038
RGBrgb(202, 192, 56)
HSLhsl(56, 58%, 51%)
HSVhsv(56, 72%, 79%)
CMYKcmyk(0%, 5%, 72.3%, 20.8%)
CIE-LABlab(76.40, -11.72, 65.65)
CIE-LCHlch(76.40, 66.69, 100.12°)
OKLaboklab(79.26% -0.0391 0.145)
OKLCHoklch(79.26% 0.15 105.1)
XYZxyz(43.9224, 50.5430, 11.1828)
Luminance0.5054 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC038 #3842CA
analogous
#CA7738 #CAC038 #8BCA38
triadic
#CAC038 #38CAC0 #C038CA
tetradic
#CAC038 #38CA77 #3842CA #CA388B
square
#CAC038 #38CA77 #3842CA #CA388B
split-complementary
#CAC038 #388BCA #7738CA
monochromatic
#6B661D #9B9429 #CAC038 #D7CF68 #E4DF99

Accessibility & contrast

On white

1.89
#CAC038 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.11
#CAC038 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC038
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC038#FFFFFF#000000##000000
##CAC0381.001.8911.1111.11
#FFFFFF1.891.0021.0021.00
#00000011.1121.001.001.00
##00000011.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B91F
Deuteranopia (green-blind)
#D4BF42
Tritanopia (blue-blind)
#D9B3A6
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #cac038;
/* rgb */ color: rgb(202, 192, 56);
/* oklch */ color: oklch(79.3% 0.150 105.1);
Tailwind
colors: {
  custom: {
    50: '#ded278',
    500: '#cac038',
    950: '#000000',
  },
}
SCSS
$custom: #cac038;
$custom-light: #ded278;
$custom-dark: #000000;
JSON
{
  "hex": "#cac038",
  "rgb": {
    "r": 202,
    "g": 192,
    "b": 56
  },
  "hsl": {
    "h": 55.89,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.79255,
    "c": 0.15022,
    "h": 105.1
  },
  "luminance": 0.50541
}

Semantic roles & 50–950 ramp

primary
#CAC038
secondary
#313675
accent
#51E147
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC038

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

Preview Lab → · Contrast checker → · Palette generator →

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