#B1A12F#B1A12F

#B1A12F is a light, vivid yellow. Relative luminance 0.350; OKLCH L 70.3% C 0.130 H 101.1°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#B1A12F
RGBrgb(177, 161, 47)
HSLhsl(53, 58%, 44%)
HSVhsv(53, 73%, 69%)
CMYKcmyk(0%, 9%, 73.4%, 30.6%)
CIE-LABlab(65.78, -6.90, 57.94)
CIE-LCHlch(65.78, 58.35, 96.79°)
OKLaboklab(70.27% -0.025 0.128)
OKLCHoklch(70.27% 0.13 101.1)
XYZxyz(31.3909, 35.0435, 7.7994)
Luminance0.3504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A12F #2F3FB1
analogous
#B1602F #B1A12F #80B12F
triadic
#B1A12F #2FB1A1 #A12FB1
tetradic
#B1A12F #2FB160 #2F3FB1 #B12F80
square
#B1A12F #2FB160 #2F3FB1 #B12F80
split-complementary
#B1A12F #2F80B1 #602FB1
monochromatic
#504915 #817522 #B1A12F #D0C04D #DDD17E

Accessibility & contrast

On white

2.62
#B1A12F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#B1A12F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A12F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A12F#FFFFFF#000000##000000
##B1A12F1.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1B
Deuteranopia (green-blind)
#B5A337
Tritanopia (blue-blind)
#BF958B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b1a12f;
/* rgb */ color: rgb(177, 161, 47);
/* oklch */ color: oklch(70.3% 0.130 101.1);
Tailwind
colors: {
  custom: {
    50: '#ccbc70',
    500: '#b1a12f',
    950: '#000000',
  },
}
SCSS
$custom: #b1a12f;
$custom-light: #ccbc70;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a12f",
  "rgb": {
    "r": 177,
    "g": 161,
    "b": 47
  },
  "hsl": {
    "h": 52.615,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70268,
    "c": 0.1304,
    "h": 101.1
  },
  "luminance": 0.35042
}

Semantic roles & 50–950 ramp

primary
#B1A12F
secondary
#7680C5
accent
#5AE147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B1A12F

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

Preview Lab → · Contrast checker → · Palette generator →

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