#C5B831#C5B831

#C5B831 is a light, vivid yellow. Relative luminance 0.464; OKLCH L 77.1% C 0.148 H 103.7°. Best body text is #000000 at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#C5B831
RGBrgb(197, 184, 49)
HSLhsl(55, 60%, 48%)
HSVhsv(55, 75%, 77%)
CMYKcmyk(0%, 6.6%, 75.1%, 22.7%)
CIE-LABlab(73.79, -10.08, 65.45)
CIE-LCHlch(73.79, 66.22, 98.76°)
OKLaboklab(77.06% -0.0349 0.1435)
OKLCHoklch(77.06% 0.148 103.7)
XYZxyz(40.7226, 46.3747, 9.7113)
Luminance0.4637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B831 #313EC5
analogous
#C56E31 #C5B831 #88C531
triadic
#C5B831 #31C5B8 #B831C5
tetradic
#C5B831 #31C56E #313EC5 #C53188
square
#C5B831 #31C56E #313EC5 #C53188
split-complementary
#C5B831 #3188C5 #6E31C5
monochromatic
#635C19 #948A25 #C5B831 #D7CC5D #E3DB8E

Accessibility & contrast

On white

2.04
#C5B831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.27
#C5B831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B831
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B831#FFFFFF#000000##000000
##C5B8311.002.0410.2710.27
#FFFFFF2.041.0021.0021.00
#00000010.2721.001.001.00
##00000010.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B214
Deuteranopia (green-blind)
#CDB83B
Tritanopia (blue-blind)
#D4AB9E
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #c5b831;
/* rgb */ color: rgb(197, 184, 49);
/* oklch */ color: oklch(77.1% 0.148 103.7);
Tailwind
colors: {
  custom: {
    50: '#dacd74',
    500: '#c5b831',
    950: '#000000',
  },
}
SCSS
$custom: #c5b831;
$custom-light: #dacd74;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b831",
  "rgb": {
    "r": 197,
    "g": 184,
    "b": 49
  },
  "hsl": {
    "h": 54.73,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.77059,
    "c": 0.14769,
    "h": 103.7
  },
  "luminance": 0.46373
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C5B831

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

Preview Lab → · Contrast checker → · Palette generator →

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