#CAC142#CAC142

#CAC142 is a light, vivid yellow. Relative luminance 0.511; OKLCH L 79.5% C 0.145 H 105.3°. Best body text is #000000 at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#CAC142
RGBrgb(202, 193, 66)
HSLhsl(56, 56%, 53%)
HSVhsv(56, 67%, 79%)
CMYKcmyk(0%, 4.5%, 67.3%, 20.8%)
CIE-LABlab(76.73, -11.72, 62.23)
CIE-LCHlch(76.73, 63.33, 100.67°)
OKLaboklab(79.54% -0.0381 0.1396)
OKLCHoklch(79.54% 0.145 105.3)
XYZxyz(44.4122, 51.0915, 12.6754)
Luminance0.5109 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC142 #424BCA
analogous
#CA7D42 #CAC142 #8FCA42
triadic
#CAC142 #42CAC1 #C142CA
tetradic
#CAC142 #42CA7D #424BCA #CA428F
square
#CAC142 #42CA7D #424BCA #CA428F
split-complementary
#CAC142 #428FCA #7D42CA
monochromatic
#726C20 #A29A2D #CAC142 #D7D172 #E5E0A2

Accessibility & contrast

On white

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

On black

11.22
#CAC142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC142
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC142#FFFFFF#000000##000000
##CAC1421.001.8711.2211.22
#FFFFFF1.871.0021.0021.00
#00000011.2221.001.001.00
##00000011.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA30
Deuteranopia (green-blind)
#D5C04A
Tritanopia (blue-blind)
#D9B4A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cac142;
/* rgb */ color: rgb(202, 193, 66);
/* oklch */ color: oklch(79.5% 0.145 105.3);
Tailwind
colors: {
  custom: {
    50: '#ddd37d',
    500: '#cac142',
    950: '#000000',
  },
}
SCSS
$custom: #cac142;
$custom-light: #ddd37d;
$custom-dark: #000000;
JSON
{
  "hex": "#cac142",
  "rgb": {
    "r": 202,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 56.029,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.79541,
    "c": 0.14465,
    "h": 105.3
  },
  "luminance": 0.5109
}

Semantic roles & 50–950 ramp

primary
#CAC142
secondary
#353A7B
accent
#52DF48
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC142

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

Preview Lab → · Contrast checker → · Palette generator →

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