#A1B227#A1B227

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

Color values

HEX#A1B227
RGBrgb(161, 178, 39)
HSLhsl(67, 64%, 43%)
HSVhsv(67, 78%, 70%)
CMYKcmyk(9.6%, 0%, 78.1%, 30.2%)
CIE-LABlab(69.16, -22.94, 63.33)
CIE-LCHlch(69.16, 67.35, 109.92°)
OKLaboklab(72.63% -0.0697 0.1385)
OKLCHoklch(72.63% 0.155 116.7)
XYZxyz(30.9854, 39.5648, 7.9235)
Luminance0.3956 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B227 #3827B2
analogous
#B27D27 #A1B227 #5CB227
triadic
#A1B227 #27A1B2 #B227A1
tetradic
#A1B227 #27B27D #3827B2 #B2275C
square
#A1B227 #27B27D #3827B2 #B2275C
split-complementary
#A1B227 #275CB2 #7D27B2
monochromatic
#464E11 #74801C #A1B227 #C3D541 #D3E073

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A1B227#FFFFFF#000000##000000
##A1B2271.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)
#BDAA34
Tritanopia (blue-blind)
#ABA898
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a1b227;
/* rgb */ color: rgb(161, 178, 39);
/* oklch */ color: oklch(72.6% 0.155 116.7);
Tailwind
colors: {
  custom: {
    50: '#c0c86d',
    500: '#a1b227',
    950: '#000000',
  },
}
SCSS
$custom: #a1b227;
$custom-light: #c0c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b227",
  "rgb": {
    "r": 161,
    "g": 178,
    "b": 39
  },
  "hsl": {
    "h": 67.338,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72628,
    "c": 0.15506,
    "h": 116.7
  },
  "luminance": 0.39564
}

Semantic roles & 50–950 ramp

primary
#A1B227
secondary
#786DC8
accent
#41E755
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A1B227

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

Preview Lab → · Contrast checker → · Palette generator →

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