#B4B142#B4B142

#B4B142 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.2% C 0.132 H 107.7°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#B4B142
RGBrgb(180, 177, 66)
HSLhsl(58, 46%, 48%)
HSVhsv(58, 63%, 71%)
CMYKcmyk(0%, 1.7%, 63.3%, 29.4%)
CIE-LABlab(70.55, -12.90, 55.24)
CIE-LCHlch(70.55, 56.73, 103.14°)
OKLaboklab(74.17% -0.0401 0.1254)
OKLCHoklch(74.17% 0.132 107.7)
XYZxyz(35.5291, 41.5420, 11.3001)
Luminance0.4154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B142 #4245B4
analogous
#B47842 #B4B142 #7EB442
triadic
#B4B142 #42B4B1 #B142B4
tetradic
#B4B142 #42B478 #4245B4 #B4427E
square
#B4B142 #42B478 #4245B4 #B4427E
split-complementary
#B4B142 #427EB4 #7842B4
monochromatic
#5A5921 #878532 #B4B142 #C9C66B #D9D797

Accessibility & contrast

On white

2.26
#B4B142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#B4B142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B142
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B142#FFFFFF#000000##000000
##B4B1421.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA34
Deuteranopia (green-blind)
#C1AF49
Tritanopia (blue-blind)
#C0A69A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b4b142;
/* rgb */ color: rgb(180, 177, 66);
/* oklch */ color: oklch(74.2% 0.132 107.7);
Tailwind
colors: {
  custom: {
    50: '#cdc87c',
    500: '#b4b142',
    950: '#000000',
  },
}
SCSS
$custom: #b4b142;
$custom-light: #cdc87c;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b142",
  "rgb": {
    "r": 180,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 58.421,
    "s": 46.341,
    "l": 48.235
  },
  "oklch": {
    "l": 0.74171,
    "c": 0.13168,
    "h": 107.7
  },
  "luminance": 0.41541
}

Semantic roles & 50–950 ramp

primary
#B4B142
secondary
#8D8EC5
accent
#55D652
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B4B142

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

Preview Lab → · Contrast checker → · Palette generator →

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