#B5A42F#B5A42F

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

Color values

HEX#B5A42F
RGBrgb(181, 164, 47)
HSLhsl(52, 59%, 45%)
HSVhsv(52, 74%, 71%)
CMYKcmyk(0%, 9.4%, 74%, 29%)
CIE-LABlab(66.96, -6.72, 59.20)
CIE-LCHlch(66.96, 59.58, 96.48°)
OKLaboklab(71.29% -0.0247 0.1305)
OKLCHoklch(71.29% 0.133 100.7)
XYZxyz(32.8461, 36.5814, 8.0196)
Luminance0.3658 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A42F #2F40B5
analogous
#B5612F #B5A42F #83B52F
triadic
#B5A42F #2FB5A4 #A42FB5
tetradic
#B5A42F #2FB561 #2F40B5 #B52F83
square
#B5A42F #2FB561 #2F40B5 #B52F83
split-complementary
#B5A42F #2F83B5 #612FB5
monochromatic
#544C16 #847822 #B5A42F #D1C150 #DED280

Accessibility & contrast

On white

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

On black

8.32
#B5A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A42F
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A42F#FFFFFF#000000##000000
##B5A42F1.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5a42f;
/* rgb */ color: rgb(181, 164, 47);
/* oklch */ color: oklch(71.3% 0.133 100.7);
Tailwind
colors: {
  custom: {
    50: '#cfbe70',
    500: '#b5a42f',
    950: '#000000',
  },
}
SCSS
$custom: #b5a42f;
$custom-light: #cfbe70;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a42f",
  "rgb": {
    "r": 181,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 52.388,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.71291,
    "c": 0.13282,
    "h": 100.7
  },
  "luminance": 0.3658
}

Semantic roles & 50–950 ramp

primary
#B5A42F
secondary
#7983C7
accent
#5AE246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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