#B1A151#B1A151

#B1A151 is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.6% C 0.103 H 98.2°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#B1A151
RGBrgb(177, 161, 81)
HSLhsl(50, 38%, 51%)
HSVhsv(50, 54%, 69%)
CMYKcmyk(0%, 9%, 54.2%, 30.6%)
CIE-LABlab(66.08, -4.67, 43.25)
CIE-LCHlch(66.08, 43.50, 96.16°)
OKLaboklab(70.6% -0.0147 0.1017)
OKLCHoklch(70.6% 0.103 98.2)
XYZxyz(32.3626, 35.4322, 12.9174)
Luminance0.3543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A151 #5161B1
analogous
#B17151 #B1A151 #91B151
triadic
#B1A151 #51B1A1 #A151B1
tetradic
#B1A151 #51B171 #5161B1 #B15191
square
#B1A151 #51B171 #5161B1 #B15191
split-complementary
#B1A151 #5191B1 #7151B1
monochromatic
#5E552A #887B3D #B1A151 #C4B87B #D7CFA6

Accessibility & contrast

On white

2.60
#B1A151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#B1A151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A151
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A151#FFFFFF#000000##000000
##B1A1511.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9D4A
Deuteranopia (green-blind)
#B3A355
Tritanopia (blue-blind)
#BD978F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b1a151;
/* rgb */ color: rgb(177, 161, 81);
/* oklch */ color: oklch(70.6% 0.103 98.2);
Tailwind
colors: {
  custom: {
    50: '#cabc84',
    500: '#b1a151',
    950: '#000000',
  },
}
SCSS
$custom: #b1a151;
$custom-light: #cabc84;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a151",
  "rgb": {
    "r": 177,
    "g": 161,
    "b": 81
  },
  "hsl": {
    "h": 50,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.70603,
    "c": 0.10279,
    "h": 98.2
  },
  "luminance": 0.35431
}

Semantic roles & 50–950 ramp

primary
#B1A151
secondary
#9AA1C4
accent
#6DCE5A
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#14120B
muted
#82817C

Preview Lab

Preview with #B1A151

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

Preview Lab → · Contrast checker → · Palette generator →

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