#B1A828#B1A828

#B1A828 is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.7% C 0.140 H 105.2°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#B1A828
RGBrgb(177, 168, 40)
HSLhsl(56, 63%, 43%)
HSVhsv(56, 77%, 69%)
CMYKcmyk(0%, 5.1%, 77.4%, 30.6%)
CIE-LABlab(67.66, -10.88, 62.13)
CIE-LCHlch(67.66, 63.07, 99.93°)
OKLaboklab(71.75% -0.0369 0.1355)
OKLCHoklch(71.75% 0.14 105.2)
XYZxyz(32.5185, 37.5069, 7.5337)
Luminance0.3751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A828 #2831B1
analogous
#B16328 #B1A828 #76B128
triadic
#B1A828 #28B1A8 #A828B1
tetradic
#B1A828 #28B163 #2831B1 #B12876
square
#B1A828 #28B163 #2831B1 #B12876
split-complementary
#B1A828 #2876B1 #6328B1
monochromatic
#4D4911 #7F791D #B1A828 #D4CB42 #E0D874

Accessibility & contrast

On white

2.47
#B1A828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#B1A828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A828
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A828#FFFFFF#000000##000000
##B1A8281.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A206
Deuteranopia (green-blind)
#BAA732
Tritanopia (blue-blind)
#BF9C90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b1a828;
/* rgb */ color: rgb(177, 168, 40);
/* oklch */ color: oklch(71.7% 0.140 105.2);
Tailwind
colors: {
  custom: {
    50: '#ccc16d',
    500: '#b1a828',
    950: '#000000',
  },
}
SCSS
$custom: #b1a828;
$custom-light: #ccc16d;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a828",
  "rgb": {
    "r": 177,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 56.058,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.71745,
    "c": 0.14047,
    "h": 105.2
  },
  "luminance": 0.37506
}

Semantic roles & 50–950 ramp

primary
#B1A828
secondary
#6E74C7
accent
#4CE642
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B1A828

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

Preview Lab → · Contrast checker → · Palette generator →

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