#B4B231#B4B231

#B4B231 is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.3% C 0.144 H 108.6°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#B4B231
RGBrgb(180, 178, 49)
HSLhsl(59, 57%, 45%)
HSVhsv(59, 73%, 71%)
CMYKcmyk(0%, 1.1%, 72.8%, 29.4%)
CIE-LABlab(70.71, -14.35, 62.03)
CIE-LCHlch(70.71, 63.67, 103.03°)
OKLaboklab(74.26% -0.0459 0.1369)
OKLCHoklch(74.26% 0.144 108.6)
XYZxyz(35.2985, 41.7670, 9.1076)
Luminance0.4177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B231 #3133B4
analogous
#B47131 #B4B231 #75B431
triadic
#B4B231 #31B4B2 #B231B4
tetradic
#B4B231 #31B471 #3133B4 #B43175
square
#B4B231 #31B471 #3133B4 #B43175
split-complementary
#B4B231 #3175B4 #7131B4
monochromatic
#545317 #848224 #B4B231 #D0CE52 #DDDC82

Accessibility & contrast

On white

2.25
#B4B231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#B4B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B231
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B231#FFFFFF#000000##000000
##B4B2311.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB18
Deuteranopia (green-blind)
#C3AF3B
Tritanopia (blue-blind)
#C1A699
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b4b231;
/* rgb */ color: rgb(180, 178, 49);
/* oklch */ color: oklch(74.3% 0.144 108.6);
Tailwind
colors: {
  custom: {
    50: '#cec873',
    500: '#b4b231',
    950: '#000000',
  },
}
SCSS
$custom: #b4b231;
$custom-light: #cec873;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b231",
  "rgb": {
    "r": 180,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 59.084,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74257,
    "c": 0.14441,
    "h": 108.6
  },
  "luminance": 0.41766
}

Semantic roles & 50–950 ramp

primary
#B4B231
secondary
#7B7CC6
accent
#4AE047
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B231

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

Preview Lab → · Contrast checker → · Palette generator →

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