#B7A12A#B7A12A

#B7A12A is a light, vivid yellow. Relative luminance 0.357; OKLCH L 70.8% C 0.133 H 98.2°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#B7A12A
RGBrgb(183, 161, 42)
HSLhsl(51, 63%, 44%)
HSVhsv(51, 77%, 72%)
CMYKcmyk(0%, 12%, 77%, 28.2%)
CIE-LABlab(66.31, -4.46, 60.43)
CIE-LCHlch(66.31, 60.59, 94.22°)
OKLaboklab(70.81% -0.0189 0.132)
OKLCHoklch(70.81% 0.133 98.2)
XYZxyz(32.6929, 35.7259, 7.3638)
Luminance0.3572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A12A #2A40B7
analogous
#B75A2A #B7A12A #87B72A
triadic
#B7A12A #2AB7A1 #A12AB7
tetradic
#B7A12A #2AB75A #2A40B7 #B72A87
square
#B7A12A #2AB75A #2A40B7 #B72A87
split-complementary
#B7A12A #2A87B7 #5A2AB7
monochromatic
#534913 #85751F #B7A12A #D5BF49 #E1D17B

Accessibility & contrast

On white

2.58
#B7A12A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#B7A12A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A12A
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A12A#FFFFFF#000000##000000
##B7A12A1.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D10
Deuteranopia (green-blind)
#B7A432
Tritanopia (blue-blind)
#C6948A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b7a12a;
/* rgb */ color: rgb(183, 161, 42);
/* oklch */ color: oklch(70.8% 0.133 98.2);
Tailwind
colors: {
  custom: {
    50: '#d1bc6d',
    500: '#b7a12a',
    950: '#000000',
  },
}
SCSS
$custom: #b7a12a;
$custom-light: #d1bc6d;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a12a",
  "rgb": {
    "r": 183,
    "g": 161,
    "b": 42
  },
  "hsl": {
    "h": 50.638,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70808,
    "c": 0.13339,
    "h": 98.2
  },
  "luminance": 0.35724
}

Semantic roles & 50–950 ramp

primary
#B7A12A
secondary
#7481C9
accent
#5CE642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #B7A12A

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

Preview Lab → · Contrast checker → · Palette generator →

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