#A1B226#A1B226

#A1B226 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.6% C 0.156 H 116.7°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#A1B226
RGBrgb(161, 178, 38)
HSLhsl(67, 65%, 42%)
HSVhsv(67, 79%, 70%)
CMYKcmyk(9.6%, 0%, 78.7%, 30.2%)
CIE-LABlab(69.15, -22.98, 63.62)
CIE-LCHlch(69.15, 67.65, 109.86°)
OKLaboklab(72.62% -0.0698 0.139)
OKLCHoklch(72.62% 0.156 116.7)
XYZxyz(30.9690, 39.5582, 7.8374)
Luminance0.3956 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B226 #3726B2
analogous
#B27D26 #A1B226 #5BB226
triadic
#A1B226 #26A1B2 #B226A1
tetradic
#A1B226 #26B27D #3726B2 #B2265B
square
#A1B226 #26B27D #3726B2 #B2265B
split-complementary
#A1B226 #265BB2 #7D26B2
monochromatic
#464D10 #73801B #A1B226 #C4D63F #D3E172

Accessibility & contrast

On white

2.36
#A1B226 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#A1B226 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1B226
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1B226#FFFFFF#000000##000000
##A1B2261.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BDAA33
Tritanopia (blue-blind)
#ABA898
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a1b226;
/* rgb */ color: rgb(161, 178, 38);
/* oklch */ color: oklch(72.6% 0.156 116.7);
Tailwind
colors: {
  custom: {
    50: '#c1c86d',
    500: '#a1b226',
    950: '#000000',
  },
}
SCSS
$custom: #a1b226;
$custom-light: #c1c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b226",
  "rgb": {
    "r": 161,
    "g": 178,
    "b": 38
  },
  "hsl": {
    "h": 67.286,
    "s": 64.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.72623,
    "c": 0.15555,
    "h": 116.7
  },
  "luminance": 0.39558
}

Semantic roles & 50–950 ramp

primary
#A1B226
secondary
#776CC8
accent
#40E854
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A1B226

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

Preview Lab → · Contrast checker → · Palette generator →

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