#B4B02F#B4B02F

#B4B02F is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.8% C 0.144 H 107.6°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#B4B02F
RGBrgb(180, 176, 47)
HSLhsl(58, 59%, 45%)
HSVhsv(58, 74%, 71%)
CMYKcmyk(0%, 2.2%, 73.9%, 29.4%)
CIE-LABlab(70.15, -13.42, 62.20)
CIE-LCHlch(70.15, 63.63, 102.17°)
OKLaboklab(73.8% -0.0435 0.1369)
OKLCHoklch(73.8% 0.144 107.6)
XYZxyz(34.8622, 40.9604, 8.7585)
Luminance0.4096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B02F #2F33B4
analogous
#B46D2F #B4B02F #76B42F
triadic
#B4B02F #2FB4B0 #B02FB4
tetradic
#B4B02F #2FB46D #2F33B4 #B42F76
square
#B4B02F #2FB46D #2F33B4 #B42F76
split-complementary
#B4B02F #2F76B4 #6D2FB4
monochromatic
#535116 #838122 #B4B02F #D1CD4F #DEDB80

Accessibility & contrast

On white

2.28
#B4B02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.19
#B4B02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B02F
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B02F#FFFFFF#000000##000000
##B4B02F1.002.289.199.19
#FFFFFF2.281.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA914
Deuteranopia (green-blind)
#C1AE39
Tritanopia (blue-blind)
#C1A497
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4b02f;
/* rgb */ color: rgb(180, 176, 47);
/* oklch */ color: oklch(73.8% 0.144 107.6);
Tailwind
colors: {
  custom: {
    50: '#cec771',
    500: '#b4b02f',
    950: '#000000',
  },
}
SCSS
$custom: #b4b02f;
$custom-light: #cec771;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b02f",
  "rgb": {
    "r": 180,
    "g": 176,
    "b": 47
  },
  "hsl": {
    "h": 58.195,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73805,
    "c": 0.14363,
    "h": 107.6
  },
  "luminance": 0.40959
}

Semantic roles & 50–950 ramp

primary
#B4B02F
secondary
#787BC7
accent
#4BE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B02F

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

Preview Lab → · Contrast checker → · Palette generator →

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