#A2B831#A2B831

#A2B831 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.1% C 0.156 H 118.6°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#A2B831
RGBrgb(162, 184, 49)
HSLhsl(70, 58%, 46%)
HSVhsv(70, 73%, 72%)
CMYKcmyk(12%, 0%, 73.4%, 27.8%)
CIE-LABlab(71.00, -25.01, 61.82)
CIE-LCHlch(71.00, 66.69, 112.03°)
OKLaboklab(74.14% -0.0746 0.137)
OKLCHoklch(74.14% 0.156 118.6)
XYZxyz(32.5959, 42.1844, 9.3304)
Luminance0.4218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B831 #4731B8
analogous
#B88A31 #A2B831 #5EB831
triadic
#A2B831 #31A2B8 #B831A2
tetradic
#A2B831 #31B88A #4731B8 #B8315E
square
#A2B831 #31B88A #4731B8 #B8315E
split-complementary
#A2B831 #315EB8 #8A31B8
monochromatic
#4D5717 #778824 #A2B831 #BDD255 #D0DE85

Accessibility & contrast

On white

2.23
#A2B831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#A2B831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B831
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B831#FFFFFF#000000##000000
##A2B8311.002.239.449.44
#FFFFFF2.231.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE16
Deuteranopia (green-blind)
#C2AE3D
Tritanopia (blue-blind)
#ACAE9E
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #a2b831;
/* rgb */ color: rgb(162, 184, 49);
/* oklch */ color: oklch(74.1% 0.156 118.6);
Tailwind
colors: {
  custom: {
    50: '#c1cd73',
    500: '#a2b831',
    950: '#000000',
  },
}
SCSS
$custom: #a2b831;
$custom-light: #c1cd73;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b831",
  "rgb": {
    "r": 162,
    "g": 184,
    "b": 49
  },
  "hsl": {
    "h": 69.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.74143,
    "c": 0.15602,
    "h": 118.6
  },
  "luminance": 0.42184
}

Semantic roles & 50–950 ramp

primary
#A2B831
secondary
#897DC8
accent
#47E160
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A2B831

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

Preview Lab → · Contrast checker → · Palette generator →

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