#C5B23A#C5B23A

#C5B23A is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.8% C 0.137 H 100.1°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#C5B23A
RGBrgb(197, 178, 58)
HSLhsl(52, 55%, 50%)
HSVhsv(52, 71%, 77%)
CMYKcmyk(0%, 9.6%, 70.6%, 22.7%)
CIE-LABlab(72.24, -6.56, 60.70)
CIE-LCHlch(72.24, 61.05, 96.16°)
OKLaboklab(75.85% -0.024 0.1351)
OKLCHoklch(75.85% 0.137 100.1)
XYZxyz(39.7119, 44.0184, 10.4068)
Luminance0.4402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B23A #3A4DC5
analogous
#C56D3A #C5B23A #92C53A
triadic
#C5B23A #3AC5B2 #B23AC5
tetradic
#C5B23A #3AC56D #3A4DC5 #C53A92
square
#C5B23A #3AC56D #3A4DC5 #C53A92
split-complementary
#C5B23A #3A92C5 #6D3AC5
monochromatic
#665D1E #96872C #C5B23A #D3C469 #E1D799

Accessibility & contrast

On white

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

On black

9.80
#C5B23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B23A
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B23A#FFFFFF#000000##000000
##C5B23A1.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD28
Deuteranopia (green-blind)
#C8B441
Tritanopia (blue-blind)
#D4A59A
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c5b23a;
/* rgb */ color: rgb(197, 178, 58);
/* oklch */ color: oklch(75.8% 0.137 100.1);
Tailwind
colors: {
  custom: {
    50: '#dac878',
    500: '#c5b23a',
    950: '#000000',
  },
}
SCSS
$custom: #c5b23a;
$custom-light: #dac878;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b23a",
  "rgb": {
    "r": 197,
    "g": 178,
    "b": 58
  },
  "hsl": {
    "h": 51.799,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.75847,
    "c": 0.13722,
    "h": 100.1
  },
  "luminance": 0.44017
}

Semantic roles & 50–950 ramp

primary
#C5B23A
secondary
#8E97CD
accent
#5EDE4A
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#151309
muted
#83827B

Preview Lab

Preview with #C5B23A

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

Preview Lab → · Contrast checker → · Palette generator →

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