#B5B240#B5B240

#B5B240 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.5% C 0.134 H 107.8°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#B5B240
RGBrgb(181, 178, 64)
HSLhsl(58, 48%, 48%)
HSVhsv(58, 65%, 71%)
CMYKcmyk(0%, 1.7%, 64.6%, 29%)
CIE-LABlab(70.90, -13.11, 56.47)
CIE-LCHlch(70.90, 57.97, 103.07°)
OKLaboklab(74.46% -0.041 0.1277)
OKLCHoklch(74.46% 0.134 107.8)
XYZxyz(35.9031, 42.0358, 11.0720)
Luminance0.4204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B240 #4043B5
analogous
#B57840 #B5B240 #7DB540
triadic
#B5B240 #40B5B2 #B240B5
tetradic
#B5B240 #40B578 #4043B5 #B5407D
square
#B5B240 #40B578 #4043B5 #B5407D
split-complementary
#B5B240 #407DB5 #7840B5
monochromatic
#5B5920 #888630 #B5B240 #CAC768 #DAD896

Accessibility & contrast

On white

2.23
#B5B240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#B5B240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B240
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B240#FFFFFF#000000##000000
##B5B2401.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB31
Deuteranopia (green-blind)
#C2AF47
Tritanopia (blue-blind)
#C2A79B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b5b240;
/* rgb */ color: rgb(181, 178, 64);
/* oklch */ color: oklch(74.5% 0.134 107.8);
Tailwind
colors: {
  custom: {
    50: '#cec87b',
    500: '#b5b240',
    950: '#000000',
  },
}
SCSS
$custom: #b5b240;
$custom-light: #cec87b;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b240",
  "rgb": {
    "r": 181,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 58.462,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.74458,
    "c": 0.1341,
    "h": 107.8
  },
  "luminance": 0.42035
}

Semantic roles & 50–950 ramp

primary
#B5B240
secondary
#8B8DC5
accent
#54D750
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B5B240

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

Preview Lab → · Contrast checker → · Palette generator →

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