#B3B731#B3B731

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

Color values

HEX#B3B731
RGBrgb(179, 183, 49)
HSLhsl(62, 58%, 45%)
HSVhsv(62, 73%, 72%)
CMYKcmyk(2.2%, 0%, 73.2%, 28.2%)
CIE-LABlab(72.01, -17.32, 63.24)
CIE-LCHlch(72.01, 65.57, 105.32°)
OKLaboklab(75.28% -0.0542 0.1395)
OKLCHoklch(75.28% 0.15 111.2)
XYZxyz(36.0795, 43.6734, 9.4344)
Luminance0.4367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3B731 #3531B7
analogous
#B77831 #B3B731 #70B731
triadic
#B3B731 #31B3B7 #B731B3
tetradic
#B3B731 #31B778 #3531B7 #B73170
square
#B3B731 #31B778 #3531B7 #B73170
split-complementary
#B3B731 #3170B7 #7831B7
monochromatic
#555617 #848724 #B3B731 #CDD154 #DBDE84

Accessibility & contrast

On white

2.16
#B3B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.73
#B3B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3B731
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3B731#FFFFFF#000000##000000
##B3B7311.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF16
Deuteranopia (green-blind)
#C6B23C
Tritanopia (blue-blind)
#C0AC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b3b731;
/* rgb */ color: rgb(179, 183, 49);
/* oklch */ color: oklch(75.3% 0.150 111.2);
Tailwind
colors: {
  custom: {
    50: '#cdcc73',
    500: '#b3b731',
    950: '#000000',
  },
}
SCSS
$custom: #b3b731;
$custom-light: #cdcc73;
$custom-dark: #000000;
JSON
{
  "hex": "#b3b731",
  "rgb": {
    "r": 179,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 61.791,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.75276,
    "c": 0.14965,
    "h": 111.2
  },
  "luminance": 0.43672
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B3B731

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

Preview Lab → · Contrast checker → · Palette generator →

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