#B4B128#B4B128

#B4B128 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 74.0% C 0.148 H 108.2°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#B4B128
RGBrgb(180, 177, 40)
HSLhsl(59, 64%, 43%)
HSVhsv(59, 78%, 71%)
CMYKcmyk(0%, 1.7%, 77.8%, 29.4%)
CIE-LABlab(70.39, -14.22, 64.69)
CIE-LCHlch(70.39, 66.24, 102.40°)
OKLaboklab(73.98% -0.0464 0.1409)
OKLCHoklch(73.98% 0.148 108.2)
XYZxyz(34.9289, 41.3020, 8.1392)
Luminance0.4130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B128 #282BB4
analogous
#B46B28 #B4B128 #71B428
triadic
#B4B128 #28B4B1 #B128B4
tetradic
#B4B128 #28B46B #282BB4 #B42871
square
#B4B128 #28B46B #282BB4 #B42871
split-complementary
#B4B128 #2871B4 #6B28B4
monochromatic
#504F12 #82801D #B4B128 #D5D244 #E1DE76

Accessibility & contrast

On white

2.27
#B4B128 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#B4B128 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B128
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B128#FFFFFF#000000##000000
##B4B1281.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA00
Deuteranopia (green-blind)
#C2AE34
Tritanopia (blue-blind)
#C1A598
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b4b128;
/* rgb */ color: rgb(180, 177, 40);
/* oklch */ color: oklch(74.0% 0.148 108.2);
Tailwind
colors: {
  custom: {
    50: '#cec86e',
    500: '#b4b128',
    950: '#000000',
  },
}
SCSS
$custom: #b4b128;
$custom-light: #cec86e;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b128",
  "rgb": {
    "r": 180,
    "g": 177,
    "b": 40
  },
  "hsl": {
    "h": 58.714,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.73984,
    "c": 0.14834,
    "h": 108.2
  },
  "luminance": 0.41301
}

Semantic roles & 50–950 ramp

primary
#B4B128
secondary
#7072C8
accent
#45E741
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B128

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

Preview Lab → · Contrast checker → · Palette generator →

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