#A1B231#A1B231

#A1B231 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.7% C 0.150 H 116.9°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#A1B231
RGBrgb(161, 178, 49)
HSLhsl(68, 57%, 45%)
HSVhsv(68, 72%, 70%)
CMYKcmyk(9.6%, 0%, 72.5%, 30.2%)
CIE-LABlab(69.21, -22.48, 60.07)
CIE-LCHlch(69.21, 64.14, 110.52°)
OKLaboklab(72.69% -0.0675 0.1334)
OKLCHoklch(72.69% 0.15 116.9)
XYZxyz(31.1735, 39.6400, 8.9142)
Luminance0.3964 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B231 #4231B2
analogous
#B28331 #A1B231 #61B231
triadic
#A1B231 #31A1B2 #B231A1
tetradic
#A1B231 #31B283 #4231B2 #B23161
square
#A1B231 #31B283 #4231B2 #B23161
split-complementary
#A1B231 #3161B2 #8331B2
monochromatic
#4A5217 #768224 #A1B231 #BFCF51 #D0DC81

Accessibility & contrast

On white

2.35
#A1B231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#A1B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1B231
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1B231#FFFFFF#000000##000000
##A1B2311.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA819
Deuteranopia (green-blind)
#BDAA3C
Tritanopia (blue-blind)
#ABA899
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a1b231;
/* rgb */ color: rgb(161, 178, 49);
/* oklch */ color: oklch(72.7% 0.150 116.9);
Tailwind
colors: {
  custom: {
    50: '#c0c872',
    500: '#a1b231',
    950: '#000000',
  },
}
SCSS
$custom: #a1b231;
$custom-light: #c0c872;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b231",
  "rgb": {
    "r": 161,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 67.907,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72689,
    "c": 0.14951,
    "h": 116.9
  },
  "luminance": 0.3964
}

Semantic roles & 50–950 ramp

primary
#A1B231
secondary
#8379C5
accent
#48E05C
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A1B231

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

Preview Lab → · Contrast checker → · Palette generator →

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