#C5A731#C5A731

#C5A731 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 73.5% C 0.135 H 94.1°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#C5A731
RGBrgb(197, 167, 49)
HSLhsl(48, 60%, 48%)
HSVhsv(48, 75%, 77%)
CMYKcmyk(0%, 15.2%, 75.1%, 22.7%)
CIE-LABlab(69.28, -1.18, 61.21)
CIE-LCHlch(69.28, 61.22, 91.10°)
OKLaboklab(73.48% -0.0097 0.1345)
OKLCHoklch(73.48% 0.135 94.1)
XYZxyz(37.4011, 39.7316, 8.6041)
Luminance0.3973 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A731 #314FC5
analogous
#C55D31 #C5A731 #99C531
triadic
#C5A731 #31C5A7 #A731C5
tetradic
#C5A731 #31C55D #314FC5 #C53199
square
#C5A731 #31C55D #314FC5 #C53199
split-complementary
#C5A731 #3199C5 #5D31C5
monochromatic
#635419 #947D25 #C5A731 #D7BE5D #E3D28E

Accessibility & contrast

On white

2.35
#C5A731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#C5A731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A731
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A731#FFFFFF#000000##000000
##C5A7311.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A41C
Deuteranopia (green-blind)
#C1AD38
Tritanopia (blue-blind)
#D59990
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c5a731;
/* rgb */ color: rgb(197, 167, 49);
/* oklch */ color: oklch(73.5% 0.135 94.1);
Tailwind
colors: {
  custom: {
    50: '#dbc072',
    500: '#c5a731',
    950: '#000000',
  },
}
SCSS
$custom: #c5a731;
$custom-light: #dbc072;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a731",
  "rgb": {
    "r": 197,
    "g": 167,
    "b": 49
  },
  "hsl": {
    "h": 47.838,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.73483,
    "c": 0.13483,
    "h": 94.1
  },
  "luminance": 0.3973
}

Semantic roles & 50–950 ramp

primary
#C5A731
secondary
#8593CD
accent
#65E344
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C5A731

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

Preview Lab → · Contrast checker → · Palette generator →

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