#B4A31F#B4A31F

#B4A31F is a light, vivid yellow. Relative luminance 0.360; OKLCH L 70.9% C 0.140 H 101.3°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#B4A31F
RGBrgb(180, 163, 31)
HSLhsl(53, 71%, 41%)
HSVhsv(53, 83%, 71%)
CMYKcmyk(0%, 9.4%, 82.8%, 29.4%)
CIE-LABlab(66.52, -7.24, 63.91)
CIE-LCHlch(66.52, 64.32, 96.46°)
OKLaboklab(70.89% -0.0276 0.1375)
OKLCHoklch(70.89% 0.14 101.3)
XYZxyz(32.1685, 35.9982, 6.5500)
Luminance0.3600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A31F #1F30B4
analogous
#B4591F #B4A31F #7BB41F
triadic
#B4A31F #1FB4A3 #A31FB4
tetradic
#B4A31F #1FB459 #1F30B4 #B41F7B
square
#B4A31F #1FB459 #1F30B4 #B41F7B
split-complementary
#B4A31F #1F7BB4 #591FB4
monochromatic
#4C440D #807416 #B4A31F #DCC934 #E5D768

Accessibility & contrast

On white

2.56
#B4A31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#B4A31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A31F
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A31F#FFFFFF#000000##000000
##B4A31F1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B8A52A
Tritanopia (blue-blind)
#C2968B
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b4a31f;
/* rgb */ color: rgb(180, 163, 31);
/* oklch */ color: oklch(70.9% 0.140 101.3);
Tailwind
colors: {
  custom: {
    50: '#cfbd69',
    500: '#b4a31f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a31f;
$custom-light: #cfbd69;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a31f",
  "rgb": {
    "r": 180,
    "g": 163,
    "b": 31
  },
  "hsl": {
    "h": 53.154,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.70891,
    "c": 0.14023,
    "h": 101.3
  },
  "luminance": 0.35997
}

Semantic roles & 50–950 ramp

primary
#B4A31F
secondary
#6470CB
accent
#4FED3A
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141207
muted
#83817A

Preview Lab

Preview with #B4A31F

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

Preview Lab → · Contrast checker → · Palette generator →

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