#C5B731#C5B731

#C5B731 is a light, vivid yellow. Relative luminance 0.460; OKLCH L 76.8% C 0.147 H 103.2°. Best body text is #000000 at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#C5B731
RGBrgb(197, 183, 49)
HSLhsl(54, 60%, 48%)
HSVhsv(54, 75%, 77%)
CMYKcmyk(0%, 7.1%, 75.1%, 22.7%)
CIE-LABlab(73.52, -9.56, 65.20)
CIE-LCHlch(73.52, 65.90, 98.35°)
OKLaboklab(76.85% -0.0334 0.143)
OKLCHoklch(76.85% 0.147 103.2)
XYZxyz(40.5156, 45.9608, 9.6423)
Luminance0.4596 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B731 #313FC5
analogous
#C56D31 #C5B731 #89C531
triadic
#C5B731 #31C5B7 #B731C5
tetradic
#C5B731 #31C56D #313FC5 #C53189
square
#C5B731 #31C56D #313FC5 #C53189
split-complementary
#C5B731 #3189C5 #6D31C5
monochromatic
#635C19 #948925 #C5B731 #D7CB5D #E3DB8E

Accessibility & contrast

On white

2.06
#C5B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.19
#C5B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B731
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B731#FFFFFF#000000##000000
##C5B7311.002.0610.1910.19
#FFFFFF2.061.0021.0021.00
#00000010.1921.001.001.00
##00000010.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B115
Deuteranopia (green-blind)
#CCB73B
Tritanopia (blue-blind)
#D4AA9D
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #c5b731;
/* rgb */ color: rgb(197, 183, 49);
/* oklch */ color: oklch(76.8% 0.147 103.2);
Tailwind
colors: {
  custom: {
    50: '#dacc73',
    500: '#c5b731',
    950: '#000000',
  },
}
SCSS
$custom: #c5b731;
$custom-light: #dacc73;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b731",
  "rgb": {
    "r": 197,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 54.324,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.76846,
    "c": 0.14683,
    "h": 103.2
  },
  "luminance": 0.45959
}

Semantic roles & 50–950 ramp

primary
#C5B731
secondary
#858BCD
accent
#54E344
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C5B731

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

Preview Lab → · Contrast checker → · Palette generator →

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