#C9B240#C9B240

#C9B240 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 76.3% C 0.133 H 97.7°. Best body text is #000000 at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#C9B240
RGBrgb(201, 178, 64)
HSLhsl(50, 56%, 52%)
HSVhsv(50, 68%, 79%)
CMYKcmyk(0%, 11.4%, 68.2%, 21.2%)
CIE-LABlab(72.65, -4.51, 58.83)
CIE-LCHlch(72.65, 59.00, 94.39°)
OKLaboklab(76.27% -0.0178 0.1321)
OKLCHoklch(76.27% 0.133 97.7)
XYZxyz(40.9351, 44.6305, 11.3079)
Luminance0.4463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C9B240 #4057C9
analogous
#C96E40 #C9B240 #9CC940
triadic
#C9B240 #40C9B2 #B240C9
tetradic
#C9B240 #40C96E #4057C9 #C9409C
square
#C9B240 #40C96E #4057C9 #C9409C
split-complementary
#C9B240 #409CC9 #6E40C9
monochromatic
#6F621F #9F8C2D #C9B240 #D6C570 #E4D89F

Accessibility & contrast

On white

2.12
#C9B240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.93
#C9B240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C9B240
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C9B240#FFFFFF#000000##000000
##C9B2401.002.129.939.93
#FFFFFF2.121.0021.0021.00
#0000009.9321.001.001.00
##0000009.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE31
Deuteranopia (green-blind)
#C9B646
Tritanopia (blue-blind)
#D8A59B
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #c9b240;
/* rgb */ color: rgb(201, 178, 64);
/* oklch */ color: oklch(76.3% 0.133 97.7);
Tailwind
colors: {
  custom: {
    50: '#ddc87b',
    500: '#c9b240',
    950: '#000000',
  },
}
SCSS
$custom: #c9b240;
$custom-light: #ddc87b;
$custom-dark: #000000;
JSON
{
  "hex": "#c9b240",
  "rgb": {
    "r": 201,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 49.927,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.7627,
    "c": 0.13326,
    "h": 97.7
  },
  "luminance": 0.44628
}

Semantic roles & 50–950 ramp

primary
#C9B240
secondary
#949ED0
accent
#62DF49
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #C9B240

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

Preview Lab → · Contrast checker → · Palette generator →

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