#B1A628#B1A628

#B1A628 is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.3% C 0.139 H 104.2°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#B1A628
RGBrgb(177, 166, 40)
HSLhsl(55, 63%, 43%)
HSVhsv(55, 77%, 69%)
CMYKcmyk(0%, 6.2%, 77.4%, 30.6%)
CIE-LABlab(67.11, -9.84, 61.63)
CIE-LCHlch(67.11, 62.41, 99.07°)
OKLaboklab(71.31% -0.034 0.1345)
OKLCHoklch(71.31% 0.139 104.2)
XYZxyz(32.1521, 36.7741, 7.4116)
Luminance0.3677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A628 #2833B1
analogous
#B16128 #B1A628 #78B128
triadic
#B1A628 #28B1A6 #A628B1
tetradic
#B1A628 #28B161 #2833B1 #B12878
square
#B1A628 #28B161 #2833B1 #B12878
split-complementary
#B1A628 #2878B1 #6128B1
monochromatic
#4D4811 #7F771D #B1A628 #D4C942 #E0D774

Accessibility & contrast

On white

2.51
#B1A628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#B1A628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A628
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A628#FFFFFF#000000##000000
##B1A6281.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A007
Deuteranopia (green-blind)
#B9A632
Tritanopia (blue-blind)
#BF9A8E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b1a628;
/* rgb */ color: rgb(177, 166, 40);
/* oklch */ color: oklch(71.3% 0.139 104.2);
Tailwind
colors: {
  custom: {
    50: '#ccc06d',
    500: '#b1a628',
    950: '#000000',
  },
}
SCSS
$custom: #b1a628;
$custom-light: #ccc06d;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a628",
  "rgb": {
    "r": 177,
    "g": 166,
    "b": 40
  },
  "hsl": {
    "h": 55.182,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.71308,
    "c": 0.13869,
    "h": 104.2
  },
  "luminance": 0.36773
}

Semantic roles & 50–950 ramp

primary
#B1A628
secondary
#6E75C7
accent
#4FE642
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B1A628

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

Preview Lab → · Contrast checker → · Palette generator →

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