#A2B151#A2B151

#A2B151 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 72.8% C 0.123 H 116.9°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#A2B151
RGBrgb(162, 177, 81)
HSLhsl(69, 38%, 51%)
HSVhsv(69, 54%, 69%)
CMYKcmyk(8.5%, 0%, 54.2%, 30.6%)
CIE-LABlab(69.27, -19.32, 46.66)
CIE-LCHlch(69.27, 50.50, 112.49°)
OKLaboklab(72.84% -0.0556 0.1094)
OKLCHoklch(72.84% 0.123 116.9)
XYZxyz(32.1081, 39.7201, 13.7583)
Luminance0.3972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B151 #6051B1
analogous
#B19051 #A2B151 #72B151
triadic
#A2B151 #51A2B1 #B151A2
tetradic
#A2B151 #51B190 #6051B1 #B15172
square
#A2B151 #51B190 #6051B1 #B15172
split-complementary
#A2B151 #5172B1 #9051B1
monochromatic
#565E2A #7C883D #A2B151 #B9C47B #CFD7A6

Accessibility & contrast

On white

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

On black

8.94
#A2B151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B151
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B151#FFFFFF#000000##000000
##A2B1511.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA948
Deuteranopia (green-blind)
#BAAA57
Tritanopia (blue-blind)
#ABA89C
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a2b151;
/* rgb */ color: rgb(162, 177, 81);
/* oklch */ color: oklch(72.8% 0.123 116.9);
Tailwind
colors: {
  custom: {
    50: '#bfc885',
    500: '#a2b151',
    950: '#000000',
  },
}
SCSS
$custom: #a2b151;
$custom-light: #bfc885;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b151",
  "rgb": {
    "r": 162,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 69.375,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.72839,
    "c": 0.12267,
    "h": 116.9
  },
  "luminance": 0.3972
}

Semantic roles & 50–950 ramp

primary
#A2B151
secondary
#A09AC4
accent
#5ACE6C
background
#FCFCF8
surface
#F8F8EF
border
#D1D1CA
text
#12130B
muted
#81827C

Preview Lab

Preview with #A2B151

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

Preview Lab → · Contrast checker → · Palette generator →

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