#C5B240#C5B240

#C5B240 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.9% C 0.133 H 99.7°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#C5B240
RGBrgb(197, 178, 64)
HSLhsl(51, 53%, 51%)
HSVhsv(51, 68%, 77%)
CMYKcmyk(0%, 9.6%, 67.5%, 22.7%)
CIE-LABlab(72.28, -6.24, 58.34)
CIE-LCHlch(72.28, 58.68, 96.10°)
OKLaboklab(75.9% -0.0224 0.1312)
OKLCHoklch(75.9% 0.133 99.7)
XYZxyz(39.8735, 44.0831, 11.2581)
Luminance0.4408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B240 #4053C5
analogous
#C56F40 #C5B240 #95C540
triadic
#C5B240 #40C5B2 #B240C5
tetradic
#C5B240 #40C56F #4053C5 #C54095
square
#C5B240 #40C56F #4053C5 #C54095
split-complementary
#C5B240 #4095C5 #6F40C5
monochromatic
#6A6020 #998A2F #C5B240 #D3C56F #E2D89E

Accessibility & contrast

On white

2.14
#C5B240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.82
#C5B240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B240
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B240#FFFFFF#000000##000000
##C5B2401.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD31
Deuteranopia (green-blind)
#C8B447
Tritanopia (blue-blind)
#D4A59B
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c5b240;
/* rgb */ color: rgb(197, 178, 64);
/* oklch */ color: oklch(75.9% 0.133 99.7);
Tailwind
colors: {
  custom: {
    50: '#dac87b',
    500: '#c5b240',
    950: '#000000',
  },
}
SCSS
$custom: #c5b240;
$custom-light: #dac87b;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b240",
  "rgb": {
    "r": 197,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 51.429,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.75895,
    "c": 0.13307,
    "h": 99.7
  },
  "luminance": 0.44081
}

Semantic roles & 50–950 ramp

primary
#C5B240
secondary
#939BCE
accent
#60DD4B
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C5B240

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

Preview Lab → · Contrast checker → · Palette generator →

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