#B1A226#B1A226

#B1A226 is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.4% C 0.136 H 102.0°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#B1A226
RGBrgb(177, 162, 38)
HSLhsl(54, 65%, 42%)
HSVhsv(54, 79%, 69%)
CMYKcmyk(0%, 8.5%, 78.5%, 30.6%)
CIE-LABlab(66.00, -7.81, 61.27)
CIE-LCHlch(66.00, 61.77, 97.26°)
OKLaboklab(70.43% -0.0284 0.1333)
OKLCHoklch(70.43% 0.136 102)
XYZxyz(31.4031, 35.3291, 6.9984)
Luminance0.3533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A226 #2635B1
analogous
#B15C26 #B1A226 #7BB126
triadic
#B1A226 #26B1A2 #A226B1
tetradic
#B1A226 #26B15C #2635B1 #B1267B
square
#B1A226 #26B15C #2635B1 #B1267B
split-complementary
#B1A226 #267BB1 #5C26B1
monochromatic
#4C4610 #7F741B #B1A226 #D6C53F #E0D471

Accessibility & contrast

On white

2.60
#B1A226 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#B1A226 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A226
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A226#FFFFFF#000000##000000
##B1A2261.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D04
Deuteranopia (green-blind)
#B6A330
Tritanopia (blue-blind)
#BF968B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b1a226;
/* rgb */ color: rgb(177, 162, 38);
/* oklch */ color: oklch(70.4% 0.136 102.0);
Tailwind
colors: {
  custom: {
    50: '#ccbd6b',
    500: '#b1a226',
    950: '#000000',
  },
}
SCSS
$custom: #b1a226;
$custom-light: #ccbd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a226",
  "rgb": {
    "r": 177,
    "g": 162,
    "b": 38
  },
  "hsl": {
    "h": 53.525,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.70428,
    "c": 0.13632,
    "h": 102
  },
  "luminance": 0.35328
}

Semantic roles & 50–950 ramp

primary
#B1A226
secondary
#6B75C7
accent
#52E840
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B1A226

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

Preview Lab → · Contrast checker → · Palette generator →

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