#B4B127#B4B127

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

Color values

HEX#B4B127
RGBrgb(180, 177, 39)
HSLhsl(59, 64%, 43%)
HSVhsv(59, 78%, 71%)
CMYKcmyk(0%, 1.7%, 78.3%, 29.4%)
CIE-LABlab(70.38, -14.26, 64.99)
CIE-LCHlch(70.38, 66.54, 102.37°)
OKLaboklab(73.98% -0.0466 0.1414)
OKLCHoklch(73.98% 0.149 108.2)
XYZxyz(34.9121, 41.2952, 8.0508)
Luminance0.4129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B127 #272AB4
analogous
#B46A27 #B4B127 #71B427
triadic
#B4B127 #27B4B1 #B127B4
tetradic
#B4B127 #27B46A #272AB4 #B42771
square
#B4B127 #27B46A #272AB4 #B42771
split-complementary
#B4B127 #2771B4 #6A27B4
monochromatic
#4F4E11 #82801C #B4B127 #D6D342 #E1DF74

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4B127#FFFFFF#000000##000000
##B4B1271.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)
#C2AE33
Tritanopia (blue-blind)
#C1A598
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b4b127;
/* rgb */ color: rgb(180, 177, 39);
/* oklch */ color: oklch(74.0% 0.149 108.2);
Tailwind
colors: {
  custom: {
    50: '#cec86e',
    500: '#b4b127',
    950: '#000000',
  },
}
SCSS
$custom: #b4b127;
$custom-light: #cec86e;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b127",
  "rgb": {
    "r": 180,
    "g": 177,
    "b": 39
  },
  "hsl": {
    "h": 58.723,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73979,
    "c": 0.14882,
    "h": 108.2
  },
  "luminance": 0.41294
}

Semantic roles & 50–950 ramp

primary
#B4B127
secondary
#6F70C8
accent
#44E740
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B127

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

Preview Lab → · Contrast checker → · Palette generator →

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