#B1A52F#B1A52F

#B1A52F is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.1% C 0.134 H 103.4°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#B1A52F
RGBrgb(177, 165, 47)
HSLhsl(54, 58%, 44%)
HSVhsv(54, 73%, 69%)
CMYKcmyk(0%, 6.8%, 73.4%, 30.6%)
CIE-LABlab(66.87, -9.01, 58.99)
CIE-LCHlch(66.87, 59.68, 98.68°)
OKLaboklab(71.13% -0.031 0.1302)
OKLCHoklch(71.13% 0.134 103.4)
XYZxyz(32.1011, 36.4640, 8.0361)
Luminance0.3646 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A52F #2F3BB1
analogous
#B1642F #B1A52F #7CB12F
triadic
#B1A52F #2FB1A5 #A52FB1
tetradic
#B1A52F #2FB164 #2F3BB1 #B12F7C
square
#B1A52F #2FB164 #2F3BB1 #B12F7C
split-complementary
#B1A52F #2F7CB1 #642FB1
monochromatic
#504B15 #817822 #B1A52F #D0C44D #DDD47E

Accessibility & contrast

On white

2.53
#B1A52F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#B1A52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A52F
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A52F#FFFFFF#000000##000000
##B1A52F1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F1A
Deuteranopia (green-blind)
#B8A537
Tritanopia (blue-blind)
#BF998E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b1a52f;
/* rgb */ color: rgb(177, 165, 47);
/* oklch */ color: oklch(71.1% 0.134 103.4);
Tailwind
colors: {
  custom: {
    50: '#ccbf70',
    500: '#b1a52f',
    950: '#000000',
  },
}
SCSS
$custom: #b1a52f;
$custom-light: #ccbf70;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a52f",
  "rgb": {
    "r": 177,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 54.462,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.71134,
    "c": 0.13384,
    "h": 103.4
  },
  "luminance": 0.36463
}

Semantic roles & 50–950 ramp

primary
#B1A52F
secondary
#767EC5
accent
#55E147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B1A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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