#CAC140#CAC140

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

Color values

HEX#CAC140
RGBrgb(202, 193, 64)
HSLhsl(56, 57%, 52%)
HSVhsv(56, 68%, 79%)
CMYKcmyk(0%, 4.5%, 68.3%, 20.8%)
CIE-LABlab(76.72, -11.83, 63.00)
CIE-LCHlch(76.72, 64.10, 100.64°)
OKLaboklab(79.53% -0.0386 0.1408)
OKLCHoklch(79.53% 0.146 105.3)
XYZxyz(44.3542, 51.0683, 12.3703)
Luminance0.5107 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC140 #4049CA
analogous
#CA7C40 #CAC140 #8ECA40
triadic
#CAC140 #40CAC1 #C140CA
tetradic
#CAC140 #40CA7C #4049CA #CA408E
square
#CAC140 #40CA7C #4049CA #CA408E
split-complementary
#CAC140 #408ECA #7C40CA
monochromatic
#706B1F #A0992C #CAC140 #D7D170 #E5E0A0

Accessibility & contrast

On white

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

On black

11.21
#CAC140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC140
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC140#FFFFFF#000000##000000
##CAC1401.001.8711.2111.21
#FFFFFF1.871.0021.0021.00
#00000011.2121.001.001.00
##00000011.2121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cac140;
/* rgb */ color: rgb(202, 193, 64);
/* oklch */ color: oklch(79.5% 0.146 105.3);
Tailwind
colors: {
  custom: {
    50: '#ded37c',
    500: '#cac140',
    950: '#000000',
  },
}
SCSS
$custom: #cac140;
$custom-light: #ded37c;
$custom-dark: #000000;
JSON
{
  "hex": "#cac140",
  "rgb": {
    "r": 202,
    "g": 193,
    "b": 64
  },
  "hsl": {
    "h": 56.087,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.79525,
    "c": 0.14602,
    "h": 105.3
  },
  "luminance": 0.51067
}

Semantic roles & 50–950 ramp

primary
#CAC140
secondary
#35397A
accent
#52E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC140

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

Preview Lab → · Contrast checker → · Palette generator →

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