#B7A12D#B7A12D

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

Color values

HEX#B7A12D
RGBrgb(183, 161, 45)
HSLhsl(50, 61%, 45%)
HSVhsv(50, 75%, 72%)
CMYKcmyk(0%, 12%, 75.4%, 28.2%)
CIE-LABlab(66.33, -4.33, 59.39)
CIE-LCHlch(66.33, 59.55, 94.17°)
OKLaboklab(70.83% -0.0183 0.1304)
OKLCHoklch(70.83% 0.132 98)
XYZxyz(32.7486, 35.7482, 7.6572)
Luminance0.3575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A12D #2D43B7
analogous
#B75C2D #B7A12D #88B72D
triadic
#B7A12D #2DB7A1 #A12DB7
tetradic
#B7A12D #2DB75C #2D43B7 #B72D88
square
#B7A12D #2DB75C #2D43B7 #B72D88
split-complementary
#B7A12D #2D88B7 #5C2DB7
monochromatic
#554B15 #867621 #B7A12D #D3BE4E #DFD07F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7A12D#FFFFFF#000000##000000
##B7A12D1.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)
#B19D17
Deuteranopia (green-blind)
#B7A435
Tritanopia (blue-blind)
#C6958B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b7a12d;
/* rgb */ color: rgb(183, 161, 45);
/* oklch */ color: oklch(70.8% 0.132 98.0);
Tailwind
colors: {
  custom: {
    50: '#d1bc6f',
    500: '#b7a12d',
    950: '#000000',
  },
}
SCSS
$custom: #b7a12d;
$custom-light: #d1bc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a12d",
  "rgb": {
    "r": 183,
    "g": 161,
    "b": 45
  },
  "hsl": {
    "h": 50.435,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.70827,
    "c": 0.1317,
    "h": 98
  },
  "luminance": 0.35746
}

Semantic roles & 50–950 ramp

primary
#B7A12D
secondary
#7884C8
accent
#5EE444
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #B7A12D

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

Preview Lab → · Contrast checker → · Palette generator →

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