#B1AC38#B1AC38

#B1AC38 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.7% C 0.134 H 106.9°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#B1AC38
RGBrgb(177, 172, 56)
HSLhsl(58, 52%, 46%)
HSVhsv(58, 68%, 69%)
CMYKcmyk(0%, 2.8%, 68.4%, 30.6%)
CIE-LABlab(68.85, -12.20, 57.51)
CIE-LCHlch(68.85, 58.79, 101.98°)
OKLaboklab(72.73% -0.039 0.1287)
OKLCHoklch(72.73% 0.134 106.9)
XYZxyz(33.5990, 39.1388, 9.5253)
Luminance0.3914 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AC38 #383DB1
analogous
#B17038 #B1AC38 #79B138
triadic
#B1AC38 #38B1AC #AC38B1
tetradic
#B1AC38 #38B170 #383DB1 #B13879
square
#B1AC38 #38B170 #383DB1 #B13879
split-complementary
#B1AC38 #3879B1 #7038B1
monochromatic
#54521B #837F29 #B1AC38 #CBC75B #DAD78A

Accessibility & contrast

On white

2.38
#B1AC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#B1AC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1AC38
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1AC38#FFFFFF#000000##000000
##B1AC381.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA527
Deuteranopia (green-blind)
#BDAA40
Tritanopia (blue-blind)
#BEA195
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b1ac38;
/* rgb */ color: rgb(177, 172, 56);
/* oklch */ color: oklch(72.7% 0.134 106.9);
Tailwind
colors: {
  custom: {
    50: '#ccc476',
    500: '#b1ac38',
    950: '#000000',
  },
}
SCSS
$custom: #b1ac38;
$custom-light: #ccc476;
$custom-dark: #000000;
JSON
{
  "hex": "#b1ac38",
  "rgb": {
    "r": 177,
    "g": 172,
    "b": 56
  },
  "hsl": {
    "h": 57.521,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72728,
    "c": 0.13448,
    "h": 106.9
  },
  "luminance": 0.39138
}

Semantic roles & 50–950 ramp

primary
#B1AC38
secondary
#8184C4
accent
#52DB4C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #B1AC38

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

Preview Lab → · Contrast checker → · Palette generator →

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