#B7A12E#B7A12E

#B7A12E is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.8% C 0.131 H 97.9°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#B7A12E
RGBrgb(183, 161, 46)
HSLhsl(50, 60%, 45%)
HSVhsv(50, 75%, 72%)
CMYKcmyk(0%, 12%, 74.9%, 28.2%)
CIE-LABlab(66.33, -4.29, 59.03)
CIE-LCHlch(66.33, 59.19, 94.15°)
OKLaboklab(70.83% -0.018 0.1299)
OKLCHoklch(70.83% 0.131 97.9)
XYZxyz(32.7681, 35.7560, 7.7598)
Luminance0.3575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A12E #2E44B7
analogous
#B75D2E #B7A12E #88B72E
triadic
#B7A12E #2EB7A1 #A12EB7
tetradic
#B7A12E #2EB75D #2E44B7 #B72E88
square
#B7A12E #2EB75D #2E44B7 #B72E88
split-complementary
#B7A12E #2E88B7 #5D2EB7
monochromatic
#554B15 #867622 #B7A12E #D3BE4F #DFD080

Accessibility & contrast

On white

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

On black

8.15
#B7A12E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A12E
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A12E#FFFFFF#000000##000000
##B7A12E1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D19
Deuteranopia (green-blind)
#B7A435
Tritanopia (blue-blind)
#C6958B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b7a12e;
/* rgb */ color: rgb(183, 161, 46);
/* oklch */ color: oklch(70.8% 0.131 97.9);
Tailwind
colors: {
  custom: {
    50: '#d0bc6f',
    500: '#b7a12e',
    950: '#000000',
  },
}
SCSS
$custom: #b7a12e;
$custom-light: #d0bc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a12e",
  "rgb": {
    "r": 183,
    "g": 161,
    "b": 46
  },
  "hsl": {
    "h": 50.365,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.70834,
    "c": 0.13111,
    "h": 97.9
  },
  "luminance": 0.35754
}

Semantic roles & 50–950 ramp

primary
#B7A12E
secondary
#7986C8
accent
#5EE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #B7A12E

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

Preview Lab → · Contrast checker → · Palette generator →

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