#B1A728#B1A728

#B1A728 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.5% C 0.140 H 104.7°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#B1A728
RGBrgb(177, 167, 40)
HSLhsl(56, 63%, 43%)
HSVhsv(56, 77%, 69%)
CMYKcmyk(0%, 5.6%, 77.4%, 30.6%)
CIE-LABlab(67.38, -10.36, 61.88)
CIE-LCHlch(67.38, 62.74, 99.50°)
OKLaboklab(71.53% -0.0354 0.135)
OKLCHoklch(71.53% 0.14 104.7)
XYZxyz(32.3346, 37.1391, 7.4724)
Luminance0.3714 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A728 #2832B1
analogous
#B16228 #B1A728 #77B128
triadic
#B1A728 #28B1A7 #A728B1
tetradic
#B1A728 #28B162 #2832B1 #B12877
square
#B1A728 #28B162 #2832B1 #B12877
split-complementary
#B1A728 #2877B1 #6228B1
monochromatic
#4D4911 #7F781D #B1A728 #D4CA42 #E0D874

Accessibility & contrast

On white

2.49
#B1A728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#B1A728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A728
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A728#FFFFFF#000000##000000
##B1A7281.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A107
Deuteranopia (green-blind)
#BAA732
Tritanopia (blue-blind)
#BF9B8F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b1a728;
/* rgb */ color: rgb(177, 167, 40);
/* oklch */ color: oklch(71.5% 0.140 104.7);
Tailwind
colors: {
  custom: {
    50: '#ccc06d',
    500: '#b1a728',
    950: '#000000',
  },
}
SCSS
$custom: #b1a728;
$custom-light: #ccc06d;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a728",
  "rgb": {
    "r": 177,
    "g": 167,
    "b": 40
  },
  "hsl": {
    "h": 55.62,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.71526,
    "c": 0.13958,
    "h": 104.7
  },
  "luminance": 0.37138
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B1A728

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

Preview Lab → · Contrast checker → · Palette generator →

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