#B5B22F#B5B22F

#B5B22F is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.3% C 0.145 H 108.1°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#B5B22F
RGBrgb(181, 178, 47)
HSLhsl(59, 59%, 45%)
HSVhsv(59, 74%, 71%)
CMYKcmyk(0%, 1.7%, 74%, 29%)
CIE-LABlab(70.78, -14.01, 62.82)
CIE-LCHlch(70.78, 64.37, 102.57°)
OKLaboklab(74.33% -0.0452 0.1382)
OKLCHoklch(74.33% 0.145 108.1)
XYZxyz(35.4909, 41.8710, 8.9012)
Luminance0.4187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B22F #2F32B5
analogous
#B56F2F #B5B22F #75B52F
triadic
#B5B22F #2FB5B2 #B22FB5
tetradic
#B5B22F #2FB56F #2F32B5 #B52F75
square
#B5B22F #2FB56F #2F32B5 #B52F75
split-complementary
#B5B22F #2F75B5 #6F2FB5
monochromatic
#545216 #848222 #B5B22F #D1CF50 #DEDC80

Accessibility & contrast

On white

2.24
#B5B22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#B5B22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B22F
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B22F#FFFFFF#000000##000000
##B5B22F1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB13
Deuteranopia (green-blind)
#C3AF39
Tritanopia (blue-blind)
#C2A699
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b5b22f;
/* rgb */ color: rgb(181, 178, 47);
/* oklch */ color: oklch(74.3% 0.145 108.1);
Tailwind
colors: {
  custom: {
    50: '#cfc872',
    500: '#b5b22f',
    950: '#000000',
  },
}
SCSS
$custom: #b5b22f;
$custom-light: #cfc872;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b22f",
  "rgb": {
    "r": 181,
    "g": 178,
    "b": 47
  },
  "hsl": {
    "h": 58.657,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74331,
    "c": 0.14539,
    "h": 108.1
  },
  "luminance": 0.4187
}

Semantic roles & 50–950 ramp

primary
#B5B22F
secondary
#797BC7
accent
#49E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B22F

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

Preview Lab → · Contrast checker → · Palette generator →

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