#B4B831#B4B831

#B4B831 is a light, vivid yellow. Relative luminance 0.442; OKLCH L 75.6% C 0.150 H 111.2°. Best body text is #000000 at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#B4B831
RGBrgb(180, 184, 49)
HSLhsl(62, 58%, 46%)
HSVhsv(62, 73%, 72%)
CMYKcmyk(2.2%, 0%, 73.4%, 27.8%)
CIE-LABlab(72.37, -17.40, 63.61)
CIE-LCHlch(72.37, 65.94, 105.30°)
OKLaboklab(75.58% -0.0545 0.1402)
OKLCHoklch(75.58% 0.15 111.2)
XYZxyz(36.5185, 44.2070, 9.5142)
Luminance0.4421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B831 #3531B8
analogous
#B87831 #B4B831 #70B831
triadic
#B4B831 #31B4B8 #B831B4
tetradic
#B4B831 #31B878 #3531B8 #B83170
square
#B4B831 #31B878 #3531B8 #B83170
split-complementary
#B4B831 #3170B8 #7831B8
monochromatic
#555717 #858824 #B4B831 #CED255 #DCDE85

Accessibility & contrast

On white

2.13
#B4B831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.84
#B4B831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B831
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B831#FFFFFF#000000##000000
##B4B8311.002.139.849.84
#FFFFFF2.131.0021.0021.00
#0000009.8421.001.001.00
##0000009.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B015
Deuteranopia (green-blind)
#C7B33C
Tritanopia (blue-blind)
#C1AC9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b4b831;
/* rgb */ color: rgb(180, 184, 49);
/* oklch */ color: oklch(75.6% 0.150 111.2);
Tailwind
colors: {
  custom: {
    50: '#cecd73',
    500: '#b4b831',
    950: '#000000',
  },
}
SCSS
$custom: #b4b831;
$custom-light: #cecd73;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b831",
  "rgb": {
    "r": 180,
    "g": 184,
    "b": 49
  },
  "hsl": {
    "h": 61.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75581,
    "c": 0.15043,
    "h": 111.2
  },
  "luminance": 0.44206
}

Semantic roles & 50–950 ramp

primary
#B4B831
secondary
#7F7DC8
accent
#47E14B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B4B831

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

Preview Lab → · Contrast checker → · Palette generator →

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