#B4B02C#B4B02C

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

Color values

HEX#B4B02C
RGBrgb(180, 176, 44)
HSLhsl(58, 61%, 44%)
HSVhsv(58, 76%, 71%)
CMYKcmyk(0%, 2.2%, 75.6%, 29.4%)
CIE-LABlab(70.13, -13.55, 63.19)
CIE-LCHlch(70.13, 64.63, 102.10°)
OKLaboklab(73.79% -0.0442 0.1384)
OKLCHoklch(73.79% 0.145 107.7)
XYZxyz(34.8037, 40.9370, 8.4507)
Luminance0.4094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B02C #2C30B4
analogous
#B46C2C #B4B02C #74B42C
triadic
#B4B02C #2CB4B0 #B02CB4
tetradic
#B4B02C #2CB46C #2C30B4 #B42C74
square
#B4B02C #2CB46C #2C30B4 #B42C74
split-complementary
#B4B02C #2C74B4 #6C2CB4
monochromatic
#525014 #838020 #B4B02C #D3CF4A #DFDC7C

Accessibility & contrast

On white

2.29
#B4B02C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4B02C#FFFFFF#000000##000000
##B4B02C1.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4b02c;
/* rgb */ color: rgb(180, 176, 44);
/* oklch */ color: oklch(73.8% 0.145 107.7);
Tailwind
colors: {
  custom: {
    50: '#cec770',
    500: '#b4b02c',
    950: '#000000',
  },
}
SCSS
$custom: #b4b02c;
$custom-light: #cec770;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b02c",
  "rgb": {
    "r": 180,
    "g": 176,
    "b": 44
  },
  "hsl": {
    "h": 58.235,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.73787,
    "c": 0.14531,
    "h": 107.7
  },
  "luminance": 0.40936
}

Semantic roles & 50–950 ramp

primary
#B4B02C
secondary
#7577C7
accent
#49E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B02C

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

Preview Lab → · Contrast checker → · Palette generator →

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