#C5A238#C5A238

#C5A238 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.5% C 0.128 H 90.2°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#C5A238
RGBrgb(197, 162, 56)
HSLhsl(45, 56%, 50%)
HSVhsv(45, 72%, 77%)
CMYKcmyk(0%, 17.8%, 71.6%, 22.7%)
CIE-LABlab(68.02, 1.81, 57.28)
CIE-LCHlch(68.02, 57.31, 88.19°)
OKLaboklab(72.5% -0.0003 0.1275)
OKLCHoklch(72.5% 0.128 90.2)
XYZxyz(36.6621, 37.9987, 9.1441)
Luminance0.3800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A238 #385BC5
analogous
#C55B38 #C5A238 #A2C538
triadic
#C5A238 #38C5A2 #A238C5
tetradic
#C5A238 #38C55B #385BC5 #C538A2
square
#C5A238 #38C55B #385BC5 #C538A2
split-complementary
#C5A238 #38A2C5 #5B38C5
monochromatic
#66541D #957B2A #C5A238 #D4B967 #E1CF96

Accessibility & contrast

On white

2.44
#C5A238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#C5A238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A238
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A238#FFFFFF#000000##000000
##C5A2381.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A029
Deuteranopia (green-blind)
#BDAA3D
Tritanopia (blue-blind)
#D5958D
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #c5a238;
/* rgb */ color: rgb(197, 162, 56);
/* oklch */ color: oklch(72.5% 0.128 90.2);
Tailwind
colors: {
  custom: {
    50: '#dbbd75',
    500: '#c5a238',
    950: '#000000',
  },
}
SCSS
$custom: #c5a238;
$custom-light: #dbbd75;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a238",
  "rgb": {
    "r": 197,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 45.106,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.72504,
    "c": 0.1275,
    "h": 90.2
  },
  "luminance": 0.37997
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C5A238

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

Preview Lab → · Contrast checker → · Palette generator →

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