#C5A834#C5A834

#C5A834 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.7% C 0.134 H 94.5°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#C5A834
RGBrgb(197, 168, 52)
HSLhsl(48, 58%, 49%)
HSVhsv(48, 74%, 77%)
CMYKcmyk(0%, 14.7%, 73.6%, 22.7%)
CIE-LABlab(69.56, -1.58, 60.36)
CIE-LCHlch(69.56, 60.38, 91.50°)
OKLaboklab(73.71% -0.0105 0.1333)
OKLCHoklch(73.71% 0.134 94.5)
XYZxyz(37.6504, 40.1256, 9.0100)
Luminance0.4012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A834 #3451C5
analogous
#C56034 #C5A834 #9AC534
triadic
#C5A834 #34C5A8 #A834C5
tetradic
#C5A834 #34C560 #3451C5 #C5349A
square
#C5A834 #34C560 #3451C5 #C5349A
split-complementary
#C5A834 #349AC5 #6034C5
monochromatic
#64551A #957F27 #C5A834 #D5BE61 #E2D291

Accessibility & contrast

On white

2.33
#C5A834 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#C5A834 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A834
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A834#FFFFFF#000000##000000
##C5A8341.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA521
Deuteranopia (green-blind)
#C1AE3B
Tritanopia (blue-blind)
#D59B91
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c5a834;
/* rgb */ color: rgb(197, 168, 52);
/* oklch */ color: oklch(73.7% 0.134 94.5);
Tailwind
colors: {
  custom: {
    50: '#dbc173',
    500: '#c5a834',
    950: '#000000',
  },
}
SCSS
$custom: #c5a834;
$custom-light: #dbc173;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a834",
  "rgb": {
    "r": 197,
    "g": 168,
    "b": 52
  },
  "hsl": {
    "h": 48,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.73711,
    "c": 0.13368,
    "h": 94.5
  },
  "luminance": 0.40124
}

Semantic roles & 50–950 ramp

primary
#C5A834
secondary
#8896CD
accent
#65E146
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#151209
muted
#84817B

Preview Lab

Preview with #C5A834

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

Preview Lab → · Contrast checker → · Palette generator →

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