#B8A12F#B8A12F

#B8A12F is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.9% C 0.131 H 97.3°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#B8A12F
RGBrgb(184, 161, 47)
HSLhsl(50, 59%, 45%)
HSVhsv(50, 74%, 72%)
CMYKcmyk(0%, 12.5%, 74.5%, 27.8%)
CIE-LABlab(66.43, -3.80, 58.79)
CIE-LCHlch(66.43, 58.92, 93.70°)
OKLaboklab(70.94% -0.0166 0.1295)
OKLCHoklch(70.94% 0.131 97.3)
XYZxyz(33.0268, 35.8870, 7.8761)
Luminance0.3589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A12F #2F46B8
analogous
#B85C2F #B8A12F #8AB82F
triadic
#B8A12F #2FB8A1 #A12FB8
tetradic
#B8A12F #2FB85C #2F46B8 #B82F8A
square
#B8A12F #2FB85C #2F46B8 #B82F8A
split-complementary
#B8A12F #2F8AB8 #5C2FB8
monochromatic
#574C16 #877623 #B8A12F #D3BD52 #DFD082

Accessibility & contrast

On white

2.57
#B8A12F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#B8A12F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A12F
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A12F#FFFFFF#000000##000000
##B8A12F1.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1B
Deuteranopia (green-blind)
#B7A536
Tritanopia (blue-blind)
#C7958B
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a12f;
/* rgb */ color: rgb(184, 161, 47);
/* oklch */ color: oklch(70.9% 0.131 97.3);
Tailwind
colors: {
  custom: {
    50: '#d1bc70',
    500: '#b8a12f',
    950: '#000000',
  },
}
SCSS
$custom: #b8a12f;
$custom-light: #d1bc70;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a12f",
  "rgb": {
    "r": 184,
    "g": 161,
    "b": 47
  },
  "hsl": {
    "h": 49.927,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.70938,
    "c": 0.13057,
    "h": 97.3
  },
  "luminance": 0.35885
}

Semantic roles & 50–950 ramp

primary
#B8A12F
secondary
#7B88C8
accent
#60E245
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #B8A12F

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

Preview Lab → · Contrast checker → · Palette generator →

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