#B3A831#B3A831

#B3A831 is a light, vivid yellow. Relative luminance 0.378; OKLCH L 72.0% C 0.135 H 104.0°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#B3A831
RGBrgb(179, 168, 49)
HSLhsl(55, 57%, 45%)
HSVhsv(55, 73%, 70%)
CMYKcmyk(0%, 6.1%, 72.6%, 29.8%)
CIE-LABlab(67.88, -9.61, 59.29)
CIE-LCHlch(67.88, 60.06, 99.21°)
OKLaboklab(71.98% -0.0326 0.1311)
OKLCHoklch(71.98% 0.135 104)
XYZxyz(33.1488, 37.8121, 8.4575)
Luminance0.3781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3A831 #313CB3
analogous
#B36731 #B3A831 #7DB331
triadic
#B3A831 #31B3A8 #A831B3
tetradic
#B3A831 #31B367 #313CB3 #B3317D
square
#B3A831 #31B367 #313CB3 #B3317D
split-complementary
#B3A831 #317DB3 #6731B3
monochromatic
#534E17 #837B24 #B3A831 #D0C552 #DDD582

Accessibility & contrast

On white

2.45
#B3A831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#B3A831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3A831
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3A831#FFFFFF#000000##000000
##B3A8311.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A21C
Deuteranopia (green-blind)
#BBA839
Tritanopia (blue-blind)
#C19C91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b3a831;
/* rgb */ color: rgb(179, 168, 49);
/* oklch */ color: oklch(72.0% 0.135 104.0);
Tailwind
colors: {
  custom: {
    50: '#cdc171',
    500: '#b3a831',
    950: '#000000',
  },
}
SCSS
$custom: #b3a831;
$custom-light: #cdc171;
$custom-dark: #000000;
JSON
{
  "hex": "#b3a831",
  "rgb": {
    "r": 179,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 54.923,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.71983,
    "c": 0.13512,
    "h": 104
  },
  "luminance": 0.37811
}

Semantic roles & 50–950 ramp

primary
#B3A831
secondary
#7A80C6
accent
#54E048
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B3A831

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

Preview Lab → · Contrast checker → · Palette generator →

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