#B7A02A#B7A02A

#B7A02A is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.6% C 0.133 H 97.5°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#B7A02A
RGBrgb(183, 160, 42)
HSLhsl(50, 63%, 44%)
HSVhsv(50, 77%, 72%)
CMYKcmyk(0%, 12.6%, 77%, 28.2%)
CIE-LABlab(66.04, -3.92, 60.18)
CIE-LCHlch(66.04, 60.31, 93.73°)
OKLaboklab(70.6% -0.0174 0.1315)
OKLCHoklch(70.6% 0.133 97.5)
XYZxyz(32.5188, 35.3778, 7.3058)
Luminance0.3538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A02A #2A41B7
analogous
#B75A2A #B7A02A #88B72A
triadic
#B7A02A #2AB7A0 #A02AB7
tetradic
#B7A02A #2AB75A #2A41B7 #B72A88
square
#B7A02A #2AB75A #2A41B7 #B72A88
split-complementary
#B7A02A #2A88B7 #5A2AB7
monochromatic
#534913 #85741F #B7A02A #D5BE49 #E1D07B

Accessibility & contrast

On white

2.60
#B7A02A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#B7A02A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A02A
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A02A#FFFFFF#000000##000000
##B7A02A1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C11
Deuteranopia (green-blind)
#B7A432
Tritanopia (blue-blind)
#C6938A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b7a02a;
/* rgb */ color: rgb(183, 160, 42);
/* oklch */ color: oklch(70.6% 0.133 97.5);
Tailwind
colors: {
  custom: {
    50: '#d1bb6d',
    500: '#b7a02a',
    950: '#000000',
  },
}
SCSS
$custom: #b7a02a;
$custom-light: #d1bb6d;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a02a",
  "rgb": {
    "r": 183,
    "g": 160,
    "b": 42
  },
  "hsl": {
    "h": 50.213,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70596,
    "c": 0.13266,
    "h": 97.5
  },
  "luminance": 0.35376
}

Semantic roles & 50–950 ramp

primary
#B7A02A
secondary
#7482C9
accent
#5DE642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #B7A02A

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

Preview Lab → · Contrast checker → · Palette generator →

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