#B5B22E#B5B22E

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

Color values

HEX#B5B22E
RGBrgb(181, 178, 46)
HSLhsl(59, 59%, 45%)
HSVhsv(59, 75%, 71%)
CMYKcmyk(0%, 1.7%, 74.6%, 29%)
CIE-LABlab(70.78, -14.05, 63.16)
CIE-LCHlch(70.78, 64.70, 102.54°)
OKLaboklab(74.33% -0.0454 0.1387)
OKLCHoklch(74.33% 0.146 108.1)
XYZxyz(35.4710, 41.8630, 8.7961)
Luminance0.4186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B22E #2E31B5
analogous
#B56F2E #B5B22E #74B52E
triadic
#B5B22E #2EB5B2 #B22EB5
tetradic
#B5B22E #2EB56F #2E31B5 #B52E74
square
#B5B22E #2EB56F #2E31B5 #B52E74
split-complementary
#B5B22E #2E74B5 #6F2EB5
monochromatic
#535215 #848222 #B5B22E #D2CF4E #DEDC7F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5B22E#FFFFFF#000000##000000
##B5B22E1.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)
#C1AB11
Deuteranopia (green-blind)
#C3AF38
Tritanopia (blue-blind)
#C2A699
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b5b22e;
/* rgb */ color: rgb(181, 178, 46);
/* oklch */ color: oklch(74.3% 0.146 108.1);
Tailwind
colors: {
  custom: {
    50: '#cfc871',
    500: '#b5b22e',
    950: '#000000',
  },
}
SCSS
$custom: #b5b22e;
$custom-light: #cfc871;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b22e",
  "rgb": {
    "r": 181,
    "g": 178,
    "b": 46
  },
  "hsl": {
    "h": 58.667,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74325,
    "c": 0.14596,
    "h": 108.1
  },
  "luminance": 0.41862
}

Semantic roles & 50–950 ramp

primary
#B5B22E
secondary
#7879C7
accent
#49E345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B22E

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

Preview Lab → · Contrast checker → · Palette generator →

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