#B1A826#B1A826

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

Color values

HEX#B1A826
RGBrgb(177, 168, 38)
HSLhsl(56, 65%, 42%)
HSVhsv(56, 79%, 69%)
CMYKcmyk(0%, 5.1%, 78.5%, 30.6%)
CIE-LABlab(67.65, -10.96, 62.75)
CIE-LCHlch(67.65, 63.70, 99.90°)
OKLaboklab(71.73% -0.0373 0.1365)
OKLCHoklch(71.73% 0.141 105.3)
XYZxyz(32.4854, 37.4936, 7.3592)
Luminance0.3749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A826 #262FB1
analogous
#B16326 #B1A826 #75B126
triadic
#B1A826 #26B1A8 #A826B1
tetradic
#B1A826 #26B163 #262FB1 #B12675
square
#B1A826 #26B163 #262FB1 #B12675
split-complementary
#B1A826 #2675B1 #6326B1
monochromatic
#4C4810 #7F781B #B1A826 #D6CC3F #E0D971

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1A826#FFFFFF#000000##000000
##B1A8261.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)
#B7A200
Deuteranopia (green-blind)
#BBA731
Tritanopia (blue-blind)
#BF9C90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b1a826;
/* rgb */ color: rgb(177, 168, 38);
/* oklch */ color: oklch(71.7% 0.141 105.3);
Tailwind
colors: {
  custom: {
    50: '#ccc16c',
    500: '#b1a826',
    950: '#000000',
  },
}
SCSS
$custom: #b1a826;
$custom-light: #ccc16c;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a826",
  "rgb": {
    "r": 177,
    "g": 168,
    "b": 38
  },
  "hsl": {
    "h": 56.115,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.71734,
    "c": 0.14149,
    "h": 105.3
  },
  "luminance": 0.37492
}

Semantic roles & 50–950 ramp

primary
#B1A826
secondary
#6B71C7
accent
#4BE840
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B1A826

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

Preview Lab → · Contrast checker → · Palette generator →

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