#A1B728#A1B728

#A1B728 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 73.8% C 0.160 H 118.4°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#A1B728
RGBrgb(161, 183, 40)
HSLhsl(69, 64%, 44%)
HSVhsv(69, 78%, 72%)
CMYKcmyk(12%, 0%, 78.1%, 28.2%)
CIE-LABlab(70.59, -25.35, 64.33)
CIE-LCHlch(70.59, 69.14, 111.51°)
OKLaboklab(73.78% -0.0762 0.1408)
OKLCHoklch(73.78% 0.16 118.4)
XYZxyz(32.0152, 41.5975, 8.3496)
Luminance0.4160 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B728 #3E28B7
analogous
#B78528 #A1B728 #59B728
triadic
#A1B728 #28A1B7 #B728A1
tetradic
#A1B728 #28B785 #3E28B7 #B72859
square
#A1B728 #28B785 #3E28B7 #B72859
split-complementary
#A1B728 #2859B7 #8528B7
monochromatic
#495312 #75851D #A1B728 #C0D646 #D1E178

Accessibility & contrast

On white

2.25
#A1B728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#A1B728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1B728
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1B728#FFFFFF#000000##000000
##A1B7281.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD00
Deuteranopia (green-blind)
#C1AD36
Tritanopia (blue-blind)
#ABAD9D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #a1b728;
/* rgb */ color: rgb(161, 183, 40);
/* oklch */ color: oklch(73.8% 0.160 118.4);
Tailwind
colors: {
  custom: {
    50: '#c1cc6f',
    500: '#a1b728',
    950: '#000000',
  },
}
SCSS
$custom: #a1b728;
$custom-light: #c1cc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b728",
  "rgb": {
    "r": 161,
    "g": 183,
    "b": 40
  },
  "hsl": {
    "h": 69.231,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.73784,
    "c": 0.16013,
    "h": 118.4
  },
  "luminance": 0.41597
}

Semantic roles & 50–950 ramp

primary
#A1B728
secondary
#7F72C9
accent
#41E75A
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A1B728

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

Preview Lab → · Contrast checker → · Palette generator →

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