#A1B040#A1B040

#A1B040 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.4% C 0.137 H 116.4°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#A1B040
RGBrgb(161, 176, 64)
HSLhsl(68, 47%, 47%)
HSVhsv(68, 64%, 69%)
CMYKcmyk(8.5%, 0%, 63.6%, 31%)
CIE-LABlab(68.75, -20.58, 53.72)
CIE-LCHlch(68.75, 57.53, 110.96°)
OKLaboklab(72.35% -0.0608 0.1224)
OKLCHoklch(72.35% 0.137 116.4)
XYZxyz(31.1493, 38.9983, 10.7360)
Luminance0.3900 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B040 #4F40B0
analogous
#B08740 #A1B040 #69B040
triadic
#A1B040 #40A1B0 #B040A1
tetradic
#A1B040 #40B087 #4F40B0 #B04069
square
#A1B040 #40B087 #4F40B0 #B04069
split-complementary
#A1B040 #4069B0 #8740B0
monochromatic
#4F561F #788330 #A1B040 #BAC766 #CED893

Accessibility & contrast

On white

2.39
#A1B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#A1B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1B040
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1B040#FFFFFF#000000##000000
##A1B0401.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA732
Deuteranopia (green-blind)
#BAA948
Tritanopia (blue-blind)
#ABA699
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a1b040;
/* rgb */ color: rgb(161, 176, 64);
/* oklch */ color: oklch(72.4% 0.137 116.4);
Tailwind
colors: {
  custom: {
    50: '#bfc77a',
    500: '#a1b040',
    950: '#000000',
  },
}
SCSS
$custom: #a1b040;
$custom-light: #bfc77a;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b040",
  "rgb": {
    "r": 161,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 68.036,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.72352,
    "c": 0.13664,
    "h": 116.4
  },
  "luminance": 0.38998
}

Semantic roles & 50–950 ramp

primary
#A1B040
secondary
#9189C3
accent
#51D663
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A1B040

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

Preview Lab → · Contrast checker → · Palette generator →

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