#B4B158#B4B158

#B4B158 is a light, moderate yellow. Relative luminance 0.419; OKLCH L 74.4% C 0.112 H 107.1°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#B4B158
RGBrgb(180, 177, 88)
HSLhsl(58, 38%, 53%)
HSVhsv(58, 51%, 71%)
CMYKcmyk(0%, 1.7%, 51.1%, 29.4%)
CIE-LABlab(70.77, -11.22, 45.41)
CIE-LCHlch(70.77, 46.77, 103.88°)
OKLaboklab(74.41% -0.0329 0.1071)
OKLCHoklch(74.41% 0.112 107.1)
XYZxyz(36.3069, 41.8531, 15.3965)
Luminance0.4185 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B158 #585BB4
analogous
#B48358 #B4B158 #89B458
triadic
#B4B158 #58B4B1 #B158B4
tetradic
#B4B158 #58B483 #585BB4 #B45889
square
#B4B158 #58B483 #585BB4 #B45889
split-complementary
#B4B158 #5889B4 #8358B4
monochromatic
#64632D #8F8C40 #B4B158 #C7C582 #DAD8AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4B158#FFFFFF#000000##000000
##B4B1581.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)
#BEAB50
Deuteranopia (green-blind)
#BFAF5C
Tritanopia (blue-blind)
#BFA79D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b4b158;
/* rgb */ color: rgb(180, 177, 88);
/* oklch */ color: oklch(74.4% 0.112 107.1);
Tailwind
colors: {
  custom: {
    50: '#ccc889',
    500: '#b4b158',
    950: '#000000',
  },
}
SCSS
$custom: #b4b158;
$custom-light: #ccc889;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b158",
  "rgb": {
    "r": 180,
    "g": 177,
    "b": 88
  },
  "hsl": {
    "h": 58.043,
    "s": 38.017,
    "l": 52.549
  },
  "oklch": {
    "l": 0.74412,
    "c": 0.11201,
    "h": 107.1
  },
  "luminance": 0.41852
}

Semantic roles & 50–950 ramp

primary
#B4B158
secondary
#A0A1C8
accent
#5ECE5A
background
#FCFCF8
surface
#F9F8F0
border
#D2D1CB
text
#14130C
muted
#82827D

Preview Lab

Preview with #B4B158

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

Preview Lab → · Contrast checker → · Palette generator →

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