#B1A22F#B1A22F

#B1A22F is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.5% C 0.131 H 101.7°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#B1A22F
RGBrgb(177, 162, 47)
HSLhsl(53, 58%, 44%)
HSVhsv(53, 73%, 69%)
CMYKcmyk(0%, 8.5%, 73.4%, 30.6%)
CIE-LABlab(66.05, -7.43, 58.21)
CIE-LCHlch(66.05, 58.68, 97.27°)
OKLaboklab(70.48% -0.0265 0.1285)
OKLCHoklch(70.48% 0.131 101.7)
XYZxyz(31.5663, 35.3944, 7.8579)
Luminance0.3539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A22F #2F3EB1
analogous
#B1612F #B1A22F #7FB12F
triadic
#B1A22F #2FB1A2 #A22FB1
tetradic
#B1A22F #2FB161 #2F3EB1 #B12F7F
square
#B1A22F #2FB161 #2F3EB1 #B12F7F
split-complementary
#B1A22F #2F7FB1 #612FB1
monochromatic
#504915 #817622 #B1A22F #D0C14D #DDD27E

Accessibility & contrast

On white

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

On black

8.08
#B1A22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A22F
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A22F#FFFFFF#000000##000000
##B1A22F1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1B
Deuteranopia (green-blind)
#B6A337
Tritanopia (blue-blind)
#BF968C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b1a22f;
/* rgb */ color: rgb(177, 162, 47);
/* oklch */ color: oklch(70.5% 0.131 101.7);
Tailwind
colors: {
  custom: {
    50: '#ccbd70',
    500: '#b1a22f',
    950: '#000000',
  },
}
SCSS
$custom: #b1a22f;
$custom-light: #ccbd70;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a22f",
  "rgb": {
    "r": 177,
    "g": 162,
    "b": 47
  },
  "hsl": {
    "h": 53.077,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70484,
    "c": 0.13125,
    "h": 101.7
  },
  "luminance": 0.35393
}

Semantic roles & 50–950 ramp

primary
#B1A22F
secondary
#7680C5
accent
#58E147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B1A22F

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

Preview Lab → · Contrast checker → · Palette generator →

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