#B7AC38#B7AC38

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

Color values

HEX#B7AC38
RGBrgb(183, 172, 56)
HSLhsl(55, 53%, 47%)
HSVhsv(55, 69%, 72%)
CMYKcmyk(0%, 6%, 69.4%, 28.2%)
CIE-LABlab(69.37, -9.60, 58.20)
CIE-LCHlch(69.37, 58.99, 99.37°)
OKLaboklab(73.27% -0.032 0.13)
OKLCHoklch(73.27% 0.134 103.9)
XYZxyz(34.9962, 39.8592, 9.5908)
Luminance0.3986 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AC38 #3843B7
analogous
#B76D38 #B7AC38 #83B738
triadic
#B7AC38 #38B7AC #AC38B7
tetradic
#B7AC38 #38B76D #3843B7 #B73883
square
#B7AC38 #38B76D #3843B7 #B73883
split-complementary
#B7AC38 #3883B7 #6D38B7
monochromatic
#59541B #88802A #B7AC38 #CEC45E #DCD58D

Accessibility & contrast

On white

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

On black

8.97
#B7AC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AC38
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AC38#FFFFFF#000000##000000
##B7AC381.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA627
Deuteranopia (green-blind)
#BFAC3F
Tritanopia (blue-blind)
#C5A095
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b7ac38;
/* rgb */ color: rgb(183, 172, 56);
/* oklch */ color: oklch(73.3% 0.134 103.9);
Tailwind
colors: {
  custom: {
    50: '#d0c476',
    500: '#b7ac38',
    950: '#000000',
  },
}
SCSS
$custom: #b7ac38;
$custom-light: #d0c476;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ac38",
  "rgb": {
    "r": 183,
    "g": 172,
    "b": 56
  },
  "hsl": {
    "h": 54.803,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.73265,
    "c": 0.13384,
    "h": 103.9
  },
  "luminance": 0.39858
}

Semantic roles & 50–950 ramp

primary
#B7AC38
secondary
#848AC7
accent
#58DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B7AC38

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

Preview Lab → · Contrast checker → · Palette generator →

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