#B4A42B#B4A42B

#B4A42B is a light, vivid yellow. Relative luminance 0.364; OKLCH L 71.2% C 0.135 H 101.4°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#B4A42B
RGBrgb(180, 164, 43)
HSLhsl(53, 61%, 44%)
HSVhsv(53, 76%, 71%)
CMYKcmyk(0%, 8.9%, 76.1%, 29.4%)
CIE-LABlab(66.85, -7.34, 60.48)
CIE-LCHlch(66.85, 60.93, 96.92°)
OKLaboklab(71.17% -0.0268 0.1325)
OKLCHoklch(71.17% 0.135 101.4)
XYZxyz(32.5354, 36.4301, 7.6030)
Luminance0.3643 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A42B #2B3BB4
analogous
#B45F2B #B4A42B #7FB42B
triadic
#B4A42B #2BB4A4 #A42BB4
tetradic
#B4A42B #2BB45F #2B3BB4 #B42B7F
square
#B4A42B #2BB45F #2B3BB4 #B42B7F
split-complementary
#B4A42B #2B7FB4 #5F2BB4
monochromatic
#514A13 #83771F #B4A42B #D3C349 #DFD37A

Accessibility & contrast

On white

2.53
#B4A42B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#B4A42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A42B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A42B#FFFFFF#000000##000000
##B4A42B1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F11
Deuteranopia (green-blind)
#B8A534
Tritanopia (blue-blind)
#C2988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b4a42b;
/* rgb */ color: rgb(180, 164, 43);
/* oklch */ color: oklch(71.2% 0.135 101.4);
Tailwind
colors: {
  custom: {
    50: '#cebe6e',
    500: '#b4a42b',
    950: '#000000',
  },
}
SCSS
$custom: #b4a42b;
$custom-light: #cebe6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a42b",
  "rgb": {
    "r": 180,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 52.993,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.71171,
    "c": 0.13518,
    "h": 101.4
  },
  "luminance": 0.36429
}

Semantic roles & 50–950 ramp

primary
#B4A42B
secondary
#737DC7
accent
#56E543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A42B

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

Preview Lab → · Contrast checker → · Palette generator →

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