#C5A338#C5A338

#C5A338 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.7% C 0.128 H 90.8°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#C5A338
RGBrgb(197, 163, 56)
HSLhsl(46, 56%, 50%)
HSVhsv(46, 72%, 77%)
CMYKcmyk(0%, 17.3%, 71.6%, 22.7%)
CIE-LABlab(68.28, 1.28, 57.54)
CIE-LCHlch(68.28, 57.55, 88.73°)
OKLaboklab(72.71% -0.0019 0.1281)
OKLCHoklch(72.71% 0.128 90.8)
XYZxyz(36.8390, 38.3524, 9.2030)
Luminance0.3835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A338 #385AC5
analogous
#C55D38 #C5A338 #A1C538
triadic
#C5A338 #38C5A3 #A338C5
tetradic
#C5A338 #38C55D #385AC5 #C538A1
square
#C5A338 #38C55D #385AC5 #C538A1
split-complementary
#C5A338 #38A1C5 #5D38C5
monochromatic
#66541D #957C2A #C5A338 #D4B967 #E1CF96

Accessibility & contrast

On white

2.42
#C5A338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#C5A338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A338
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A338#FFFFFF#000000##000000
##C5A3381.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A129
Deuteranopia (green-blind)
#BDAA3E
Tritanopia (blue-blind)
#D5968D
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #c5a338;
/* rgb */ color: rgb(197, 163, 56);
/* oklch */ color: oklch(72.7% 0.128 90.8);
Tailwind
colors: {
  custom: {
    50: '#dbbd75',
    500: '#c5a338',
    950: '#000000',
  },
}
SCSS
$custom: #c5a338;
$custom-light: #dbbd75;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a338",
  "rgb": {
    "r": 197,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 45.532,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.72709,
    "c": 0.12806,
    "h": 90.8
  },
  "luminance": 0.3835
}

Semantic roles & 50–950 ramp

primary
#C5A338
secondary
#8C9CCD
accent
#6DDF49
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #C5A338

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

Preview Lab → · Contrast checker → · Palette generator →

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