#C9B940#C9B940

#C9B940 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.7% C 0.139 H 101.7°. Best body text is #000000 at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#C9B940
RGBrgb(201, 185, 64)
HSLhsl(53, 56%, 52%)
HSVhsv(53, 68%, 79%)
CMYKcmyk(0%, 8%, 68.2%, 21.2%)
CIE-LABlab(74.50, -8.15, 60.72)
CIE-LCHlch(74.50, 61.27, 97.65°)
OKLaboklab(77.74% -0.0281 0.1361)
OKLCHoklch(77.74% 0.139 101.7)
XYZxyz(42.3636, 47.4874, 11.7840)
Luminance0.4749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9B940 #4050C9
analogous
#C97540 #C9B940 #94C940
triadic
#C9B940 #40C9B9 #B940C9
tetradic
#C9B940 #40C975 #4050C9 #C94094
square
#C9B940 #40C975 #4050C9 #C94094
split-complementary
#C9B940 #4094C9 #7540C9
monochromatic
#6F661F #9F922D #C9B940 #D6CA70 #E4DC9F

Accessibility & contrast

On white

2.00
#C9B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.50
#C9B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9B940
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9B940#FFFFFF#000000##000000
##C9B9401.002.0010.5010.50
#FFFFFF2.001.0021.0021.00
#00000010.5021.001.001.00
##00000010.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB32F
Deuteranopia (green-blind)
#CEBA47
Tritanopia (blue-blind)
#D8ACA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #c9b940;
/* rgb */ color: rgb(201, 185, 64);
/* oklch */ color: oklch(77.7% 0.139 101.7);
Tailwind
colors: {
  custom: {
    50: '#ddcd7c',
    500: '#c9b940',
    950: '#000000',
  },
}
SCSS
$custom: #c9b940;
$custom-light: #ddcd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#c9b940",
  "rgb": {
    "r": 201,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 52.993,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.77739,
    "c": 0.13894,
    "h": 101.7
  },
  "luminance": 0.47486
}

Semantic roles & 50–950 ramp

primary
#C9B940
secondary
#949BD0
accent
#5ADF49
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #C9B940

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

Preview Lab → · Contrast checker → · Palette generator →

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