#A1B228#A1B228

#A1B228 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#A1B228
RGBrgb(161, 178, 40)
HSLhsl(67, 63%, 43%)
HSVhsv(67, 78%, 70%)
CMYKcmyk(9.6%, 0%, 77.5%, 30.2%)
CIE-LABlab(69.16, -22.90, 63.02)
CIE-LCHlch(69.16, 67.06, 109.97°)
OKLaboklab(72.63% -0.0695 0.1381)
OKLCHoklch(72.63% 0.155 116.7)
XYZxyz(31.0022, 39.5715, 8.0120)
Luminance0.3957 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B228 #3928B2
analogous
#B27E28 #A1B228 #5CB228
triadic
#A1B228 #28A1B2 #B228A1
tetradic
#A1B228 #28B27E #3928B2 #B2285C
square
#A1B228 #28B27E #3928B2 #B2285C
split-complementary
#A1B228 #285CB2 #7E28B2
monochromatic
#474E12 #74801D #A1B228 #C3D543 #D3E075

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #a1b228;
/* rgb */ color: rgb(161, 178, 40);
/* oklch */ color: oklch(72.6% 0.155 116.7);
Tailwind
colors: {
  custom: {
    50: '#c0c86e',
    500: '#a1b228',
    950: '#000000',
  },
}
SCSS
$custom: #a1b228;
$custom-light: #c0c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b228",
  "rgb": {
    "r": 161,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 67.391,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72634,
    "c": 0.15455,
    "h": 116.7
  },
  "luminance": 0.39571
}

Semantic roles & 50–950 ramp

primary
#A1B228
secondary
#796FC7
accent
#41E656
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A1B228

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

Preview Lab → · Contrast checker → · Palette generator →

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