#A1B628#A1B628

#A1B628 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 73.6% C 0.159 H 118.1°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#A1B628
RGBrgb(161, 182, 40)
HSLhsl(69, 64%, 44%)
HSVhsv(69, 78%, 71%)
CMYKcmyk(11.5%, 0%, 78%, 28.6%)
CIE-LABlab(70.31, -24.87, 64.07)
CIE-LCHlch(70.31, 68.72, 111.21°)
OKLaboklab(73.55% -0.0749 0.1403)
OKLCHoklch(73.55% 0.159 118.1)
XYZxyz(31.8097, 41.1865, 8.2811)
Luminance0.4119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B628 #3D28B6
analogous
#B68428 #A1B628 #5AB628
triadic
#A1B628 #28A1B6 #B628A1
tetradic
#A1B628 #28B684 #3D28B6 #B6285A
square
#A1B628 #28B684 #3D28B6 #B6285A
split-complementary
#A1B628 #285AB6 #8428B6
monochromatic
#485212 #75841D #A1B628 #C1D645 #D1E177

Accessibility & contrast

On white

2.27
#A1B628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#A1B628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1B628
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1B628#FFFFFF#000000##000000
##A1B6281.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC00
Deuteranopia (green-blind)
#C0AD36
Tritanopia (blue-blind)
#ABAC9C
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a1b628;
/* rgb */ color: rgb(161, 182, 40);
/* oklch */ color: oklch(73.6% 0.159 118.1);
Tailwind
colors: {
  custom: {
    50: '#c1cb6e',
    500: '#a1b628',
    950: '#000000',
  },
}
SCSS
$custom: #a1b628;
$custom-light: #c1cb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b628",
  "rgb": {
    "r": 161,
    "g": 182,
    "b": 40
  },
  "hsl": {
    "h": 68.873,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.73553,
    "c": 0.15901,
    "h": 118.1
  },
  "luminance": 0.41186
}

Semantic roles & 50–950 ramp

primary
#A1B628
secondary
#7E71C9
accent
#41E759
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A1B628

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

Preview Lab → · Contrast checker → · Palette generator →

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