#B5B02F#B5B02F

#B5B02F is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.9% C 0.143 H 107.2°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#B5B02F
RGBrgb(181, 176, 47)
HSLhsl(58, 59%, 45%)
HSVhsv(58, 74%, 71%)
CMYKcmyk(0%, 2.8%, 74%, 29%)
CIE-LABlab(70.23, -12.98, 62.31)
CIE-LCHlch(70.23, 63.64, 101.77°)
OKLaboklab(73.89% -0.0424 0.1371)
OKLCHoklch(73.89% 0.143 107.2)
XYZxyz(35.0959, 41.0809, 8.7695)
Luminance0.4108 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B02F #2F34B5
analogous
#B56D2F #B5B02F #77B52F
triadic
#B5B02F #2FB5B0 #B02FB5
tetradic
#B5B02F #2FB56D #2F34B5 #B52F77
square
#B5B02F #2FB56D #2F34B5 #B52F77
split-complementary
#B5B02F #2F77B5 #6D2FB5
monochromatic
#545216 #848122 #B5B02F #D1CD50 #DEDB80

Accessibility & contrast

On white

2.28
#B5B02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#B5B02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B02F
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B02F#FFFFFF#000000##000000
##B5B02F1.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA914
Deuteranopia (green-blind)
#C2AE39
Tritanopia (blue-blind)
#C2A497
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b5b02f;
/* rgb */ color: rgb(181, 176, 47);
/* oklch */ color: oklch(73.9% 0.143 107.2);
Tailwind
colors: {
  custom: {
    50: '#cfc771',
    500: '#b5b02f',
    950: '#000000',
  },
}
SCSS
$custom: #b5b02f;
$custom-light: #cfc771;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b02f",
  "rgb": {
    "r": 181,
    "g": 176,
    "b": 47
  },
  "hsl": {
    "h": 57.761,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.73893,
    "c": 0.14348,
    "h": 107.2
  },
  "luminance": 0.4108
}

Semantic roles & 50–950 ramp

primary
#B5B02F
secondary
#797CC7
accent
#4CE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B02F

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

Preview Lab → · Contrast checker → · Palette generator →

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