#C6A540#C6A540

#C6A540 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 73.3% C 0.124 H 90.7°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#C6A540
RGBrgb(198, 165, 64)
HSLhsl(45, 54%, 51%)
HSVhsv(45, 68%, 78%)
CMYKcmyk(0%, 16.7%, 67.7%, 22.4%)
CIE-LABlab(68.96, 1.07, 54.92)
CIE-LCHlch(68.96, 54.93, 88.88°)
OKLaboklab(73.29% -0.0016 0.1239)
OKLCHoklch(73.29% 0.124 90.7)
XYZxyz(37.6712, 39.2884, 10.4487)
Luminance0.3929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C6A540 #4061C6
analogous
#C66240 #C6A540 #A4C640
triadic
#C6A540 #40C6A5 #A540C6
tetradic
#C6A540 #40C662 #4061C6 #C640A4
square
#C6A540 #40C662 #4061C6 #C640A4
split-complementary
#C6A540 #40A4C6 #6240C6
monochromatic
#6C5920 #9B802E #C6A540 #D4BB6F #E2D19E

Accessibility & contrast

On white

2.37
#C6A540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#C6A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C6A540
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C6A540#FFFFFF#000000##000000
##C6A5401.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A333
Deuteranopia (green-blind)
#BFAC45
Tritanopia (blue-blind)
#D69890
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c6a540;
/* rgb */ color: rgb(198, 165, 64);
/* oklch */ color: oklch(73.3% 0.124 90.7);
Tailwind
colors: {
  custom: {
    50: '#dbbf7a',
    500: '#c6a540',
    950: '#000000',
  },
}
SCSS
$custom: #c6a540;
$custom-light: #dbbf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#c6a540",
  "rgb": {
    "r": 198,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 45.224,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.73288,
    "c": 0.12389,
    "h": 90.7
  },
  "luminance": 0.39286
}

Semantic roles & 50–950 ramp

primary
#C6A540
secondary
#93A2CE
accent
#6FDD4A
background
#FDFBF7
surface
#FBF6EE
border
#D4D0C9
text
#151209
muted
#83817B

Preview Lab

Preview with #C6A540

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

Preview Lab → · Contrast checker → · Palette generator →

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