#B5A42C#B5A42C

#B5A42C is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.3% C 0.135 H 100.9°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#B5A42C
RGBrgb(181, 164, 44)
HSLhsl(53, 61%, 44%)
HSVhsv(53, 76%, 71%)
CMYKcmyk(0%, 9.4%, 75.7%, 29%)
CIE-LABlab(66.94, -6.85, 60.26)
CIE-LCHlch(66.94, 60.65, 96.49°)
OKLaboklab(71.27% -0.0254 0.1322)
OKLCHoklch(71.27% 0.135 100.9)
XYZxyz(32.7877, 36.5581, 7.7117)
Luminance0.3656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A42C #2C3DB5
analogous
#B5602C #B5A42C #82B52C
triadic
#B5A42C #2CB5A4 #A42CB5
tetradic
#B5A42C #2CB560 #2C3DB5 #B52C82
square
#B5A42C #2CB560 #2C3DB5 #B52C82
split-complementary
#B5A42C #2C82B5 #602CB5
monochromatic
#534B14 #847720 #B5A42C #D3C24B #DFD37C

Accessibility & contrast

On white

2.53
#B5A42C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#B5A42C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A42C
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A42C#FFFFFF#000000##000000
##B5A42C1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F14
Deuteranopia (green-blind)
#B9A634
Tritanopia (blue-blind)
#C3988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b5a42c;
/* rgb */ color: rgb(181, 164, 44);
/* oklch */ color: oklch(71.3% 0.135 100.9);
Tailwind
colors: {
  custom: {
    50: '#cfbe6f',
    500: '#b5a42c',
    950: '#000000',
  },
}
SCSS
$custom: #b5a42c;
$custom-light: #cfbe6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a42c",
  "rgb": {
    "r": 181,
    "g": 164,
    "b": 44
  },
  "hsl": {
    "h": 52.555,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.71271,
    "c": 0.13458,
    "h": 100.9
  },
  "luminance": 0.36557
}

Semantic roles & 50–950 ramp

primary
#B5A42C
secondary
#757FC8
accent
#58E444
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A42C

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

Preview Lab → · Contrast checker → · Palette generator →

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