#B7AC2F#B7AC2F

#B7AC2F is a light, vivid yellow. Relative luminance 0.398; OKLCH L 73.2% C 0.140 H 104.2°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#B7AC2F
RGBrgb(183, 172, 47)
HSLhsl(55, 59%, 45%)
HSVhsv(55, 74%, 72%)
CMYKcmyk(0%, 6%, 74.3%, 28.2%)
CIE-LABlab(69.31, -10.04, 61.50)
CIE-LCHlch(69.31, 62.31, 99.27°)
OKLaboklab(73.2% -0.0342 0.1353)
OKLCHoklch(73.2% 0.14 104.2)
XYZxyz(34.7956, 39.7790, 8.5340)
Luminance0.3978 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AC2F #2F3AB7
analogous
#B7682F #B7AC2F #7EB72F
triadic
#B7AC2F #2FB7AC #AC2FB7
tetradic
#B7AC2F #2FB768 #2F3AB7 #B72F7E
square
#B7AC2F #2FB768 #2F3AB7 #B72F7E
split-complementary
#B7AC2F #2F7EB7 #682FB7
monochromatic
#565016 #867E22 #B7AC2F #D2C851 #DFD782

Accessibility & contrast

On white

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

On black

8.96
#B7AC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AC2F
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AC2F#FFFFFF#000000##000000
##B7AC2F1.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7ac2f;
/* rgb */ color: rgb(183, 172, 47);
/* oklch */ color: oklch(73.2% 0.140 104.2);
Tailwind
colors: {
  custom: {
    50: '#d0c471',
    500: '#b7ac2f',
    950: '#000000',
  },
}
SCSS
$custom: #b7ac2f;
$custom-light: #d0c471;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ac2f",
  "rgb": {
    "r": 183,
    "g": 172,
    "b": 47
  },
  "hsl": {
    "h": 55.147,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73201,
    "c": 0.13955,
    "h": 104.2
  },
  "luminance": 0.39778
}

Semantic roles & 50–950 ramp

primary
#B7AC2F
secondary
#7A80C8
accent
#52E245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7AC2F

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

Preview Lab → · Contrast checker → · Palette generator →

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