#B4C731#B4C731

#B4C731 is a light, vivid yellow. Relative luminance 0.508; OKLCH L 78.9% C 0.166 H 116.8°. Best body text is #000000 at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#B4C731
RGBrgb(180, 199, 49)
HSLhsl(68, 60%, 49%)
HSVhsv(68, 75%, 78%)
CMYKcmyk(9.5%, 0%, 75.4%, 22%)
CIE-LABlab(76.54, -24.81, 67.52)
CIE-LCHlch(76.54, 71.94, 110.18°)
OKLaboklab(78.93% -0.075 0.1485)
OKLCHoklch(78.93% 0.166 116.8)
XYZxyz(39.8012, 50.7724, 10.6085)
Luminance0.5077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4C731 #4431C7
analogous
#C78F31 #B4C731 #69C731
triadic
#B4C731 #31B4C7 #C731B4
tetradic
#B4C731 #31C78F #4431C7 #C73169
square
#B4C731 #31C78F #4431C7 #C73169
split-complementary
#B4C731 #3169C7 #8F31C7
monochromatic
#5B6519 #889625 #B4C731 #C8D75E #D9E38F

Accessibility & contrast

On white

1.88
#B4C731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.15
#B4C731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4C731
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4C731#FFFFFF#000000##000000
##B4C7311.001.8811.1511.15
#FFFFFF1.881.0021.0021.00
#00000011.1521.001.001.00
##00000011.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC0A
Deuteranopia (green-blind)
#D3BE3E
Tritanopia (blue-blind)
#BFBCAB
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #b4c731;
/* rgb */ color: rgb(180, 199, 49);
/* oklch */ color: oklch(78.9% 0.166 116.8);
Tailwind
colors: {
  custom: {
    50: '#ced775',
    500: '#b4c731',
    950: '#000000',
  },
}
SCSS
$custom: #b4c731;
$custom-light: #ced775;
$custom-dark: #000000;
JSON
{
  "hex": "#b4c731",
  "rgb": {
    "r": 180,
    "g": 199,
    "b": 49
  },
  "hsl": {
    "h": 67.6,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.78928,
    "c": 0.1664,
    "h": 116.8
  },
  "luminance": 0.50772
}

Semantic roles & 50–950 ramp

primary
#B4C731
secondary
#352D6F
accent
#44E458
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #B4C731

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

Preview Lab → · Contrast checker → · Palette generator →

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