#B5B42E#B5B42E

#B5B42E is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.8% C 0.148 H 109.1°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#B5B42E
RGBrgb(181, 180, 46)
HSLhsl(60, 59%, 45%)
HSVhsv(60, 75%, 71%)
CMYKcmyk(0%, 0.6%, 74.6%, 29%)
CIE-LABlab(71.33, -15.07, 63.67)
CIE-LCHlch(71.33, 65.43, 103.32°)
OKLaboklab(74.77% -0.0483 0.1398)
OKLCHoklch(74.77% 0.148 109.1)
XYZxyz(35.8718, 42.6646, 8.9297)
Luminance0.4266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B42E #2E2FB5
analogous
#B5712E #B5B42E #72B52E
triadic
#B5B42E #2EB5B4 #B42EB5
tetradic
#B5B42E #2EB571 #2E2FB5 #B52E72
square
#B5B42E #2EB571 #2E2FB5 #B52E72
split-complementary
#B5B42E #2E72B5 #712EB5
monochromatic
#535315 #848322 #B5B42E #D2D14E #DEDE7F

Accessibility & contrast

On white

2.20
#B5B42E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.53
#B5B42E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B42E
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B42E#FFFFFF#000000##000000
##B5B42E1.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC10
Deuteranopia (green-blind)
#C5B139
Tritanopia (blue-blind)
#C2A89B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b5b42e;
/* rgb */ color: rgb(181, 180, 46);
/* oklch */ color: oklch(74.8% 0.148 109.1);
Tailwind
colors: {
  custom: {
    50: '#cfca71',
    500: '#b5b42e',
    950: '#000000',
  },
}
SCSS
$custom: #b5b42e;
$custom-light: #cfca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b42e",
  "rgb": {
    "r": 181,
    "g": 180,
    "b": 46
  },
  "hsl": {
    "h": 59.556,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74765,
    "c": 0.1479,
    "h": 109.1
  },
  "luminance": 0.42664
}

Semantic roles & 50–950 ramp

primary
#B5B42E
secondary
#7878C7
accent
#46E345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B42E

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

Preview Lab → · Contrast checker → · Palette generator →

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