#B1A42E#B1A42E

#B1A42E is a light, vivid yellow. Relative luminance 0.361; OKLCH L 70.9% C 0.134 H 102.9°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#B1A42E
RGBrgb(177, 164, 46)
HSLhsl(54, 59%, 44%)
HSVhsv(54, 74%, 69%)
CMYKcmyk(0%, 7.3%, 74%, 30.6%)
CIE-LABlab(66.59, -8.53, 59.09)
CIE-LCHlch(66.59, 59.70, 98.21°)
OKLaboklab(70.91% -0.0297 0.1302)
OKLCHoklch(70.91% 0.134 102.9)
XYZxyz(31.9015, 36.0966, 7.8712)
Luminance0.3609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A42E #2E3BB1
analogous
#B1622E #B1A42E #7CB12E
triadic
#B1A42E #2EB1A4 #A42EB1
tetradic
#B1A42E #2EB162 #2E3BB1 #B12E7C
square
#B1A42E #2EB162 #2E3BB1 #B12E7C
split-complementary
#B1A42E #2E7CB1 #622EB1
monochromatic
#504A15 #807721 #B1A42E #D0C34C #DDD37C

Accessibility & contrast

On white

2.56
#B1A42E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#B1A42E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A42E
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A42E#FFFFFF#000000##000000
##B1A42E1.002.568.228.22
#FFFFFF2.561.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F18
Deuteranopia (green-blind)
#B7A536
Tritanopia (blue-blind)
#BF988D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b1a42e;
/* rgb */ color: rgb(177, 164, 46);
/* oklch */ color: oklch(70.9% 0.134 102.9);
Tailwind
colors: {
  custom: {
    50: '#ccbe6f',
    500: '#b1a42e',
    950: '#000000',
  },
}
SCSS
$custom: #b1a42e;
$custom-light: #ccbe6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a42e",
  "rgb": {
    "r": 177,
    "g": 164,
    "b": 46
  },
  "hsl": {
    "h": 54.046,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.7091,
    "c": 0.13357,
    "h": 102.9
  },
  "luminance": 0.36095
}

Semantic roles & 50–950 ramp

primary
#B1A42E
secondary
#757DC6
accent
#55E246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B1A42E

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

Preview Lab → · Contrast checker → · Palette generator →

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