#B7AC2D#B7AC2D

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

Color values

HEX#B7AC2D
RGBrgb(183, 172, 45)
HSLhsl(55, 61%, 45%)
HSVhsv(55, 75%, 72%)
CMYKcmyk(0%, 6%, 75.4%, 28.2%)
CIE-LABlab(69.30, -10.13, 62.18)
CIE-LCHlch(69.30, 63.00, 99.25°)
OKLaboklab(73.19% -0.0346 0.1364)
OKLCHoklch(73.19% 0.141 104.3)
XYZxyz(34.7561, 39.7632, 8.3264)
Luminance0.3976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AC2D #2D38B7
analogous
#B7672D #B7AC2D #7DB72D
triadic
#B7AC2D #2DB7AC #AC2DB7
tetradic
#B7AC2D #2DB767 #2D38B7 #B72D7D
square
#B7AC2D #2DB767 #2D38B7 #B72D7D
split-complementary
#B7AC2D #2D7DB7 #672DB7
monochromatic
#555015 #867E21 #B7AC2D #D3C94E #DFD87F

Accessibility & contrast

On white

2.35
#B7AC2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#B7AC2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AC2D
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AC2D#FFFFFF#000000##000000
##B7AC2D1.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7ac2d;
/* rgb */ color: rgb(183, 172, 45);
/* oklch */ color: oklch(73.2% 0.141 104.3);
Tailwind
colors: {
  custom: {
    50: '#d0c470',
    500: '#b7ac2d',
    950: '#000000',
  },
}
SCSS
$custom: #b7ac2d;
$custom-light: #d0c470;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ac2d",
  "rgb": {
    "r": 183,
    "g": 172,
    "b": 45
  },
  "hsl": {
    "h": 55.217,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.73189,
    "c": 0.14069,
    "h": 104.3
  },
  "luminance": 0.39762
}

Semantic roles & 50–950 ramp

primary
#B7AC2D
secondary
#787EC8
accent
#51E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7AC2D

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

Preview Lab → · Contrast checker → · Palette generator →

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