#C5A642#C5A642

#C5A642 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 73.4% C 0.123 H 91.7°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#C5A642
RGBrgb(197, 166, 66)
HSLhsl(46, 53%, 52%)
HSVhsv(46, 66%, 77%)
CMYKcmyk(0%, 15.7%, 66.5%, 22.7%)
CIE-LABlab(69.14, 0.22, 54.21)
CIE-LCHlch(69.14, 54.21, 89.77°)
OKLaboklab(73.41% -0.0037 0.1227)
OKLCHoklch(73.41% 0.123 91.7)
XYZxyz(37.6474, 39.5382, 10.8019)
Luminance0.3954 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A642 #4261C5
analogous
#C56542 #C5A642 #A2C542
triadic
#C5A642 #42C5A6 #A642C5
tetradic
#C5A642 #42C565 #4261C5 #C542A2
square
#C5A642 #42C565 #4261C5 #C542A2
split-complementary
#C5A642 #42A2C5 #6542C5
monochromatic
#6C5A21 #9A812F #C5A642 #D3BC71 #E2D2A0

Accessibility & contrast

On white

2.36
#C5A642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#C5A642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A642
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A642#FFFFFF#000000##000000
##C5A6421.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A436
Deuteranopia (green-blind)
#BFAD47
Tritanopia (blue-blind)
#D59991
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c5a642;
/* rgb */ color: rgb(197, 166, 66);
/* oklch */ color: oklch(73.4% 0.123 91.7);
Tailwind
colors: {
  custom: {
    50: '#dac07b',
    500: '#c5a642',
    950: '#000000',
  },
}
SCSS
$custom: #c5a642;
$custom-light: #dac07b;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a642",
  "rgb": {
    "r": 197,
    "g": 166,
    "b": 66
  },
  "hsl": {
    "h": 45.802,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.73412,
    "c": 0.12279,
    "h": 91.7
  },
  "luminance": 0.39536
}

Semantic roles & 50–950 ramp

primary
#C5A642
secondary
#95A2CE
accent
#6EDC4B
background
#FDFBF7
surface
#FBF7EE
border
#D4D0C9
text
#15120A
muted
#83817C

Preview Lab

Preview with #C5A642

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

Preview Lab → · Contrast checker → · Palette generator →

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