#B4A42F#B4A42F

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

Color values

HEX#B4A42F
RGBrgb(180, 164, 47)
HSLhsl(53, 59%, 45%)
HSVhsv(53, 74%, 71%)
CMYKcmyk(0%, 8.9%, 73.9%, 29.4%)
CIE-LABlab(66.87, -7.16, 59.08)
CIE-LCHlch(66.87, 59.52, 96.91°)
OKLaboklab(71.2% -0.0259 0.1303)
OKLCHoklch(71.2% 0.133 101.3)
XYZxyz(32.6124, 36.4609, 8.0086)
Luminance0.3646 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A42F #2F3FB4
analogous
#B4622F #B4A42F #82B42F
triadic
#B4A42F #2FB4A4 #A42FB4
tetradic
#B4A42F #2FB462 #2F3FB4 #B42F82
square
#B4A42F #2FB462 #2F3FB4 #B42F82
split-complementary
#B4A42F #2F82B4 #622FB4
monochromatic
#534C16 #837822 #B4A42F #D1C14F #DED280

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4A42F#FFFFFF#000000##000000
##B4A42F1.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)
#B49F1A
Deuteranopia (green-blind)
#B8A637
Tritanopia (blue-blind)
#C2988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b4a42f;
/* rgb */ color: rgb(180, 164, 47);
/* oklch */ color: oklch(71.2% 0.133 101.3);
Tailwind
colors: {
  custom: {
    50: '#cebe70',
    500: '#b4a42f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a42f;
$custom-light: #cebe70;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a42f",
  "rgb": {
    "r": 180,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 52.782,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71197,
    "c": 0.13283,
    "h": 101.3
  },
  "luminance": 0.36459
}

Semantic roles & 50–950 ramp

primary
#B4A42F
secondary
#7882C7
accent
#59E246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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