#B4A82F#B4A82F

#B4A82F is a light, vivid yellow. Relative luminance 0.379; OKLCH L 72.1% C 0.136 H 103.5°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#B4A82F
RGBrgb(180, 168, 47)
HSLhsl(55, 59%, 45%)
HSVhsv(55, 74%, 71%)
CMYKcmyk(0%, 6.7%, 73.9%, 29.4%)
CIE-LABlab(67.96, -9.27, 60.12)
CIE-LCHlch(67.96, 60.83, 98.76°)
OKLaboklab(72.06% -0.0319 0.1325)
OKLCHoklch(72.06% 0.136 103.5)
XYZxyz(33.3396, 37.9152, 8.2510)
Luminance0.3791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A82F #2F3BB4
analogous
#B4652F #B4A82F #7EB42F
triadic
#B4A82F #2FB4A8 #A82FB4
tetradic
#B4A82F #2FB465 #2F3BB4 #B42F7E
square
#B4A82F #2FB465 #2F3BB4 #B42F7E
split-complementary
#B4A82F #2F7EB4 #652FB4
monochromatic
#534D16 #837B22 #B4A82F #D1C54F #DED580

Accessibility & contrast

On white

2.45
#B4A82F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#B4A82F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A82F
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A82F#FFFFFF#000000##000000
##B4A82F1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A218
Deuteranopia (green-blind)
#BBA838
Tritanopia (blue-blind)
#C29C91
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b4a82f;
/* rgb */ color: rgb(180, 168, 47);
/* oklch */ color: oklch(72.1% 0.136 103.5);
Tailwind
colors: {
  custom: {
    50: '#cec170',
    500: '#b4a82f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a82f;
$custom-light: #cec170;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a82f",
  "rgb": {
    "r": 180,
    "g": 168,
    "b": 47
  },
  "hsl": {
    "h": 54.586,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72061,
    "c": 0.13626,
    "h": 103.5
  },
  "luminance": 0.37914
}

Semantic roles & 50–950 ramp

primary
#B4A82F
secondary
#787FC7
accent
#54E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A82F

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

Preview Lab → · Contrast checker → · Palette generator →

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