#B1A42A#B1A42A

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

Color values

HEX#B1A42A
RGBrgb(177, 164, 42)
HSLhsl(54, 62%, 43%)
HSVhsv(54, 76%, 69%)
CMYKcmyk(0%, 7.3%, 76.3%, 30.6%)
CIE-LABlab(66.57, -8.70, 60.47)
CIE-LCHlch(66.57, 61.09, 98.19°)
OKLaboklab(70.88% -0.0306 0.1324)
OKLCHoklch(70.88% 0.136 103)
XYZxyz(31.8263, 36.0666, 7.4752)
Luminance0.3607 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A42A #2A37B1
analogous
#B1602A #B1A42A #7BB12A
triadic
#B1A42A #2AB1A4 #A42AB1
tetradic
#B1A42A #2AB160 #2A37B1 #B12A7B
square
#B1A42A #2AB160 #2A37B1 #B12A7B
split-complementary
#B1A42A #2A7BB1 #602AB1
monochromatic
#4E4813 #80761E #B1A42A #D3C545 #DFD577

Accessibility & contrast

On white

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

On black

8.21
#B1A42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A42A
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A42A#FFFFFF#000000##000000
##B1A42A1.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b1a42a;
/* rgb */ color: rgb(177, 164, 42);
/* oklch */ color: oklch(70.9% 0.136 103.0);
Tailwind
colors: {
  custom: {
    50: '#ccbe6d',
    500: '#b1a42a',
    950: '#000000',
  },
}
SCSS
$custom: #b1a42a;
$custom-light: #ccbe6d;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a42a",
  "rgb": {
    "r": 177,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 54.222,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.70885,
    "c": 0.13588,
    "h": 103
  },
  "luminance": 0.36065
}

Semantic roles & 50–950 ramp

primary
#B1A42A
secondary
#7079C6
accent
#53E543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B1A42A

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

Preview Lab → · Contrast checker → · Palette generator →

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