#CAC138#CAC138

#CAC138 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.5% C 0.151 H 105.6°. Best body text is #000000 at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#CAC138
RGBrgb(202, 193, 56)
HSLhsl(56, 58%, 51%)
HSVhsv(56, 72%, 79%)
CMYKcmyk(0%, 4.5%, 72.3%, 20.8%)
CIE-LABlab(76.67, -12.23, 65.91)
CIE-LCHlch(76.67, 67.03, 100.51°)
OKLaboklab(79.47% -0.0405 0.1456)
OKLCHoklch(79.47% 0.151 105.6)
XYZxyz(44.1427, 50.9837, 11.2562)
Luminance0.5098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC138 #3841CA
analogous
#CA7838 #CAC138 #8ACA38
triadic
#CAC138 #38CAC1 #C138CA
tetradic
#CAC138 #38CA78 #3841CA #CA388A
square
#CAC138 #38CA78 #3841CA #CA388A
split-complementary
#CAC138 #388ACA #7838CA
monochromatic
#6B661D #9B9429 #CAC138 #D7D068 #E4DF99

Accessibility & contrast

On white

1.88
#CAC138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.20
#CAC138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC138
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC138#FFFFFF#000000##000000
##CAC1381.001.8811.2011.20
#FFFFFF1.881.0021.0021.00
#00000011.2021.001.001.00
##00000011.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA1F
Deuteranopia (green-blind)
#D5C042
Tritanopia (blue-blind)
#D9B4A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cac138;
/* rgb */ color: rgb(202, 193, 56);
/* oklch */ color: oklch(79.5% 0.151 105.6);
Tailwind
colors: {
  custom: {
    50: '#ded378',
    500: '#cac138',
    950: '#000000',
  },
}
SCSS
$custom: #cac138;
$custom-light: #ded378;
$custom-dark: #000000;
JSON
{
  "hex": "#cac138",
  "rgb": {
    "r": 202,
    "g": 193,
    "b": 56
  },
  "hsl": {
    "h": 56.301,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.79468,
    "c": 0.15111,
    "h": 105.6
  },
  "luminance": 0.50982
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC138

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

Preview Lab → · Contrast checker → · Palette generator →

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