#C5B242#C5B242

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

Color values

HEX#C5B242
RGBrgb(197, 178, 66)
HSLhsl(51, 53%, 52%)
HSVhsv(51, 66%, 77%)
CMYKcmyk(0%, 9.6%, 66.5%, 22.7%)
CIE-LABlab(72.30, -6.12, 57.53)
CIE-LCHlch(72.30, 57.85, 96.07°)
OKLaboklab(75.91% -0.0219 0.1298)
OKLCHoklch(75.91% 0.132 99.6)
XYZxyz(39.9315, 44.1063, 11.5632)
Luminance0.4410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B242 #4255C5
analogous
#C57142 #C5B242 #97C542
triadic
#C5B242 #42C5B2 #B242C5
tetradic
#C5B242 #42C571 #4255C5 #C54297
square
#C5B242 #42C571 #4255C5 #C54297
split-complementary
#C5B242 #4297C5 #7142C5
monochromatic
#6C6121 #9A8B2F #C5B242 #D3C571 #E2D8A0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C5B242#FFFFFF#000000##000000
##C5B2421.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)
#C2AD34
Deuteranopia (green-blind)
#C8B448
Tritanopia (blue-blind)
#D4A59B
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c5b242;
/* rgb */ color: rgb(197, 178, 66);
/* oklch */ color: oklch(75.9% 0.132 99.6);
Tailwind
colors: {
  custom: {
    50: '#dac87c',
    500: '#c5b242',
    950: '#000000',
  },
}
SCSS
$custom: #c5b242;
$custom-light: #dac87c;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b242",
  "rgb": {
    "r": 197,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 51.298,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.75913,
    "c": 0.1316,
    "h": 99.6
  },
  "luminance": 0.44104
}

Semantic roles & 50–950 ramp

primary
#C5B242
secondary
#959DCE
accent
#60DC4B
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C5B242

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

Preview Lab → · Contrast checker → · Palette generator →

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