#B5A02F#B5A02F

#B5A02F is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.130 H 98.3°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#B5A02F
RGBrgb(181, 160, 47)
HSLhsl(51, 59%, 45%)
HSVhsv(51, 74%, 71%)
CMYKcmyk(0%, 11.6%, 74%, 29%)
CIE-LABlab(65.88, -4.59, 58.17)
CIE-LCHlch(65.88, 58.35, 94.52°)
OKLaboklab(70.44% -0.0187 0.1283)
OKLCHoklch(70.44% 0.13 98.3)
XYZxyz(32.1415, 35.1722, 7.7847)
Luminance0.3517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A02F #2F44B5
analogous
#B55D2F #B5A02F #87B52F
triadic
#B5A02F #2FB5A0 #A02FB5
tetradic
#B5A02F #2FB55D #2F44B5 #B52F87
square
#B5A02F #2FB55D #2F44B5 #B52F87
split-complementary
#B5A02F #2F87B5 #5D2FB5
monochromatic
#544A16 #847522 #B5A02F #D1BD50 #DECF80

Accessibility & contrast

On white

2.61
#B5A02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#B5A02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A02F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A02F#FFFFFF#000000##000000
##B5A02F1.002.618.038.03
#FFFFFF2.611.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1B
Deuteranopia (green-blind)
#B6A336
Tritanopia (blue-blind)
#C3948A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b5a02f;
/* rgb */ color: rgb(181, 160, 47);
/* oklch */ color: oklch(70.4% 0.130 98.3);
Tailwind
colors: {
  custom: {
    50: '#cfbb70',
    500: '#b5a02f',
    950: '#000000',
  },
}
SCSS
$custom: #b5a02f;
$custom-light: #cfbb70;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a02f",
  "rgb": {
    "r": 181,
    "g": 160,
    "b": 47
  },
  "hsl": {
    "h": 50.597,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.70435,
    "c": 0.12966,
    "h": 98.3
  },
  "luminance": 0.35171
}

Semantic roles & 50–950 ramp

primary
#B5A02F
secondary
#7985C7
accent
#5EE246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B5A02F

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

Preview Lab → · Contrast checker → · Palette generator →

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