#B7A431#B7A431

#B7A431 is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.5% C 0.132 H 99.6°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#B7A431
RGBrgb(183, 164, 49)
HSLhsl(51, 58%, 45%)
HSVhsv(51, 73%, 72%)
CMYKcmyk(0%, 10.4%, 73.2%, 28.2%)
CIE-LABlab(67.16, -5.75, 58.71)
CIE-LCHlch(67.16, 58.99, 95.59°)
OKLaboklab(71.49% -0.0219 0.1298)
OKLCHoklch(71.49% 0.132 99.6)
XYZxyz(33.3599, 36.8416, 8.2591)
Luminance0.3684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A431 #3144B7
analogous
#B76131 #B7A431 #87B731
triadic
#B7A431 #31B7A4 #A431B7
tetradic
#B7A431 #31B761 #3144B7 #B73187
square
#B7A431 #31B761 #3144B7 #B73187
split-complementary
#B7A431 #3187B7 #6131B7
monochromatic
#564D17 #877924 #B7A431 #D1BF54 #DED184

Accessibility & contrast

On white

2.51
#B7A431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#B7A431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A431
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A431#FFFFFF#000000##000000
##B7A4311.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A01D
Deuteranopia (green-blind)
#B9A638
Tritanopia (blue-blind)
#C5988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b7a431;
/* rgb */ color: rgb(183, 164, 49);
/* oklch */ color: oklch(71.5% 0.132 99.6);
Tailwind
colors: {
  custom: {
    50: '#d0be71',
    500: '#b7a431',
    950: '#000000',
  },
}
SCSS
$custom: #b7a431;
$custom-light: #d0be71;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a431",
  "rgb": {
    "r": 183,
    "g": 164,
    "b": 49
  },
  "hsl": {
    "h": 51.493,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.71494,
    "c": 0.13159,
    "h": 99.6
  },
  "luminance": 0.3684
}

Semantic roles & 50–950 ramp

primary
#B7A431
secondary
#7C87C8
accent
#5DE147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7A431

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

Preview Lab → · Contrast checker → · Palette generator →

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