#C5AB3F#C5AB3F

#C5AB3F is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.4% C 0.128 H 95.5°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#C5AB3F
RGBrgb(197, 171, 63)
HSLhsl(48, 54%, 51%)
HSVhsv(48, 68%, 77%)
CMYKcmyk(0%, 13.2%, 68%, 22.7%)
CIE-LABlab(70.43, -2.61, 56.84)
CIE-LCHlch(70.43, 56.90, 92.63°)
OKLaboklab(74.42% -0.0122 0.1278)
OKLCHoklch(74.42% 0.128 95.5)
XYZxyz(38.4879, 41.3570, 10.6571)
Luminance0.4135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5AB3F #3F59C5
analogous
#C5683F #C5AB3F #9CC53F
triadic
#C5AB3F #3FC5AB #AB3FC5
tetradic
#C5AB3F #3FC568 #3F59C5 #C53F9C
square
#C5AB3F #3FC568 #3F59C5 #C53F9C
split-complementary
#C5AB3F #3F9CC5 #683FC5
monochromatic
#6A5B20 #99842E #C5AB3F #D3C06E #E1D49D

Accessibility & contrast

On white

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

On black

9.27
#C5AB3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5AB3F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5AB3F#FFFFFF#000000##000000
##C5AB3F1.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA831
Deuteranopia (green-blind)
#C3B045
Tritanopia (blue-blind)
#D49E95
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c5ab3f;
/* rgb */ color: rgb(197, 171, 63);
/* oklch */ color: oklch(74.4% 0.128 95.5);
Tailwind
colors: {
  custom: {
    50: '#dac37a',
    500: '#c5ab3f',
    950: '#000000',
  },
}
SCSS
$custom: #c5ab3f;
$custom-light: #dac37a;
$custom-dark: #000000;
JSON
{
  "hex": "#c5ab3f",
  "rgb": {
    "r": 197,
    "g": 171,
    "b": 63
  },
  "hsl": {
    "h": 48.358,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.74421,
    "c": 0.12839,
    "h": 95.5
  },
  "luminance": 0.41355
}

Semantic roles & 50–950 ramp

primary
#C5AB3F
secondary
#929ECE
accent
#67DD4B
background
#FDFBF7
surface
#FBF7EE
border
#D4D0C9
text
#151209
muted
#83817B

Preview Lab

Preview with #C5AB3F

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

Preview Lab → · Contrast checker → · Palette generator →

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