#B7A333#B7A333

#B7A333 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.3% C 0.130 H 98.8°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#B7A333
RGBrgb(183, 163, 51)
HSLhsl(51, 56%, 46%)
HSVhsv(51, 72%, 72%)
CMYKcmyk(0%, 10.9%, 72.1%, 28.2%)
CIE-LABlab(66.90, -5.12, 57.70)
CIE-LCHlch(66.90, 57.93, 95.07°)
OKLaboklab(71.3% -0.0199 0.128)
OKLCHoklch(71.3% 0.13 98.8)
XYZxyz(33.2248, 36.5023, 8.4269)
Luminance0.3650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A333 #3347B7
analogous
#B76133 #B7A333 #89B733
triadic
#B7A333 #33B7A3 #A333B7
tetradic
#B7A333 #33B761 #3347B7 #B73389
square
#B7A333 #33B761 #3347B7 #B73389
split-complementary
#B7A333 #3389B7 #6133B7
monochromatic
#574E18 #877826 #B7A333 #D0BE57 #DED087

Accessibility & contrast

On white

2.53
#B7A333 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#B7A333 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A333
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A333#FFFFFF#000000##000000
##B7A3331.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F21
Deuteranopia (green-blind)
#B8A63A
Tritanopia (blue-blind)
#C5978D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b7a333;
/* rgb */ color: rgb(183, 163, 51);
/* oklch */ color: oklch(71.3% 0.130 98.8);
Tailwind
colors: {
  custom: {
    50: '#d0bd72',
    500: '#b7a333',
    950: '#000000',
  },
}
SCSS
$custom: #b7a333;
$custom-light: #d0bd72;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a333",
  "rgb": {
    "r": 183,
    "g": 163,
    "b": 51
  },
  "hsl": {
    "h": 50.909,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.71295,
    "c": 0.12953,
    "h": 98.8
  },
  "luminance": 0.36501
}

Semantic roles & 50–950 ramp

primary
#B7A333
secondary
#7F8AC7
accent
#5FE048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7A333

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

Preview Lab → · Contrast checker → · Palette generator →

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