#C5AB34#C5AB34

#C5AB34 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 74.3% C 0.136 H 96.4°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#C5AB34
RGBrgb(197, 171, 52)
HSLhsl(49, 58%, 49%)
HSVhsv(49, 74%, 77%)
CMYKcmyk(0%, 13.2%, 73.6%, 22.7%)
CIE-LABlab(70.35, -3.17, 61.12)
CIE-LCHlch(70.35, 61.21, 92.97°)
OKLaboklab(74.33% -0.015 0.1349)
OKLCHoklch(74.33% 0.136 96.4)
XYZxyz(38.2107, 41.2461, 9.1968)
Luminance0.4124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5AB34 #344EC5
analogous
#C56334 #C5AB34 #97C534
triadic
#C5AB34 #34C5AB #AB34C5
tetradic
#C5AB34 #34C563 #344EC5 #C53497
square
#C5AB34 #34C563 #344EC5 #C53497
split-complementary
#C5AB34 #3497C5 #6334C5
monochromatic
#64571A #958127 #C5AB34 #D5C061 #E2D491

Accessibility & contrast

On white

2.27
#C5AB34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#C5AB34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5AB34
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5AB34#FFFFFF#000000##000000
##C5AB341.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA720
Deuteranopia (green-blind)
#C3B03B
Tritanopia (blue-blind)
#D59E94
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c5ab34;
/* rgb */ color: rgb(197, 171, 52);
/* oklch */ color: oklch(74.3% 0.136 96.4);
Tailwind
colors: {
  custom: {
    50: '#dbc374',
    500: '#c5ab34',
    950: '#000000',
  },
}
SCSS
$custom: #c5ab34;
$custom-light: #dbc374;
$custom-dark: #000000;
JSON
{
  "hex": "#c5ab34",
  "rgb": {
    "r": 197,
    "g": 171,
    "b": 52
  },
  "hsl": {
    "h": 49.241,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.74335,
    "c": 0.13572,
    "h": 96.4
  },
  "luminance": 0.41244
}

Semantic roles & 50–950 ramp

primary
#C5AB34
secondary
#8894CD
accent
#62E146
background
#FDFBF7
surface
#FBF7ED
border
#D4D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #C5AB34

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

Preview Lab → · Contrast checker → · Palette generator →

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