#B8AC2F#B8AC2F

#B8AC2F is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.3% C 0.139 H 103.7°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#B8AC2F
RGBrgb(184, 172, 47)
HSLhsl(55, 59%, 45%)
HSVhsv(55, 74%, 72%)
CMYKcmyk(0%, 6.5%, 74.5%, 27.8%)
CIE-LABlab(69.40, -9.60, 61.61)
CIE-LCHlch(69.40, 62.36, 98.86°)
OKLaboklab(73.29% -0.033 0.1355)
OKLCHoklch(73.29% 0.139 103.7)
XYZxyz(35.0343, 39.9021, 8.5452)
Luminance0.3990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AC2F #2F3BB8
analogous
#B8682F #B8AC2F #7FB82F
triadic
#B8AC2F #2FB8AC #AC2FB8
tetradic
#B8AC2F #2FB868 #2F3BB8 #B82F7F
square
#B8AC2F #2FB868 #2F3BB8 #B82F7F
split-complementary
#B8AC2F #2F7FB8 #682FB8
monochromatic
#575116 #877E23 #B8AC2F #D3C752 #DFD782

Accessibility & contrast

On white

2.34
#B8AC2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#B8AC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AC2F
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AC2F#FFFFFF#000000##000000
##B8AC2F1.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA616
Deuteranopia (green-blind)
#C0AC38
Tritanopia (blue-blind)
#C6A094
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b8ac2f;
/* rgb */ color: rgb(184, 172, 47);
/* oklch */ color: oklch(73.3% 0.139 103.7);
Tailwind
colors: {
  custom: {
    50: '#d1c471',
    500: '#b8ac2f',
    950: '#000000',
  },
}
SCSS
$custom: #b8ac2f;
$custom-light: #d1c471;
$custom-dark: #000000;
JSON
{
  "hex": "#b8ac2f",
  "rgb": {
    "r": 184,
    "g": 172,
    "b": 47
  },
  "hsl": {
    "h": 54.745,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.73292,
    "c": 0.13946,
    "h": 103.7
  },
  "luminance": 0.39901
}

Semantic roles & 50–950 ramp

primary
#B8AC2F
secondary
#7B81C8
accent
#53E245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8AC2F

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

Preview Lab → · Contrast checker → · Palette generator →

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