#B1A22C#B1A22C

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

Color values

HEX#B1A22C
RGBrgb(177, 162, 44)
HSLhsl(53, 60%, 43%)
HSVhsv(53, 75%, 69%)
CMYKcmyk(0%, 8.5%, 75.1%, 30.6%)
CIE-LABlab(66.04, -7.56, 59.28)
CIE-LCHlch(66.04, 59.76, 97.27°)
OKLaboklab(70.46% -0.0272 0.1302)
OKLCHoklch(70.46% 0.133 101.8)
XYZxyz(31.5079, 35.3710, 7.5500)
Luminance0.3537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A22C #2C3BB1
analogous
#B15F2C #B1A22C #7DB12C
triadic
#B1A22C #2CB1A2 #A22CB1
tetradic
#B1A22C #2CB15F #2C3BB1 #B12C7D
square
#B1A22C #2CB15F #2C3BB1 #B12C7D
split-complementary
#B1A22C #2C7DB1 #5F2CB1
monochromatic
#4F4814 #807520 #B1A22C #D2C249 #DED37A

Accessibility & contrast

On white

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

On black

8.07
#B1A22C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A22C
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A22C#FFFFFF#000000##000000
##B1A22C1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D15
Deuteranopia (green-blind)
#B6A334
Tritanopia (blue-blind)
#BF968B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b1a22c;
/* rgb */ color: rgb(177, 162, 44);
/* oklch */ color: oklch(70.5% 0.133 101.8);
Tailwind
colors: {
  custom: {
    50: '#ccbd6e',
    500: '#b1a22c',
    950: '#000000',
  },
}
SCSS
$custom: #b1a22c;
$custom-light: #ccbd6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a22c",
  "rgb": {
    "r": 177,
    "g": 162,
    "b": 44
  },
  "hsl": {
    "h": 53.233,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.70464,
    "c": 0.13305,
    "h": 101.8
  },
  "luminance": 0.3537
}

Semantic roles & 50–950 ramp

primary
#B1A22C
secondary
#737CC6
accent
#56E344
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B1A22C

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

Preview Lab → · Contrast checker → · Palette generator →

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