#B1A128#B1A128

#B1A128 is a light, vivid yellow. Relative luminance 0.350; OKLCH L 70.2% C 0.134 H 101.4°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#B1A128
RGBrgb(177, 161, 40)
HSLhsl(53, 63%, 43%)
HSVhsv(53, 77%, 69%)
CMYKcmyk(0%, 9%, 77.4%, 30.6%)
CIE-LABlab(65.74, -7.20, 60.38)
CIE-LCHlch(65.74, 60.81, 96.80°)
OKLaboklab(70.22% -0.0265 0.1318)
OKLCHoklch(70.22% 0.134 101.4)
XYZxyz(31.2608, 34.9915, 7.1145)
Luminance0.3499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A128 #2838B1
analogous
#B15D28 #B1A128 #7CB128
triadic
#B1A128 #28B1A1 #A128B1
tetradic
#B1A128 #28B15D #2838B1 #B1287C
square
#B1A128 #28B15D #2838B1 #B1287C
split-complementary
#B1A128 #287CB1 #5D28B1
monochromatic
#4D4611 #7F741D #B1A128 #D4C342 #E0D374

Accessibility & contrast

On white

2.63
#B1A128 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#B1A128 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A128
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A128#FFFFFF#000000##000000
##B1A1281.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C0B
Deuteranopia (green-blind)
#B5A331
Tritanopia (blue-blind)
#BF958A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b1a128;
/* rgb */ color: rgb(177, 161, 40);
/* oklch */ color: oklch(70.2% 0.134 101.4);
Tailwind
colors: {
  custom: {
    50: '#ccbc6c',
    500: '#b1a128',
    950: '#000000',
  },
}
SCSS
$custom: #b1a128;
$custom-light: #ccbc6c;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a128",
  "rgb": {
    "r": 177,
    "g": 161,
    "b": 40
  },
  "hsl": {
    "h": 52.993,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.70223,
    "c": 0.13446,
    "h": 101.4
  },
  "luminance": 0.3499
}

Semantic roles & 50–950 ramp

primary
#B1A128
secondary
#6E78C7
accent
#55E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #B1A128

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

Preview Lab → · Contrast checker → · Palette generator →

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