#A2B731#A2B731

#A2B731 is a light, vivid yellow. Relative luminance 0.418; OKLCH L 73.9% C 0.155 H 118.2°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#A2B731
RGBrgb(162, 183, 49)
HSLhsl(69, 58%, 45%)
HSVhsv(69, 73%, 72%)
CMYKcmyk(11.5%, 0%, 73.2%, 28.2%)
CIE-LABlab(70.71, -24.52, 61.55)
CIE-LCHlch(70.71, 66.25, 111.72°)
OKLaboklab(73.91% -0.0732 0.1365)
OKLCHoklch(73.91% 0.155 118.2)
XYZxyz(32.3889, 41.7704, 9.2614)
Luminance0.4177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B731 #4631B7
analogous
#B78931 #A2B731 #5FB731
triadic
#A2B731 #31A2B7 #B731A2
tetradic
#A2B731 #31B789 #4631B7 #B7315F
square
#A2B731 #31B789 #4631B7 #B7315F
split-complementary
#A2B731 #315FB7 #8931B7
monochromatic
#4D5617 #778724 #A2B731 #BED154 #D0DE84

Accessibility & contrast

On white

2.25
#A2B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#A2B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B731
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B731#FFFFFF#000000##000000
##A2B7311.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD16
Deuteranopia (green-blind)
#C1AE3C
Tritanopia (blue-blind)
#ACAD9D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #a2b731;
/* rgb */ color: rgb(162, 183, 49);
/* oklch */ color: oklch(73.9% 0.155 118.2);
Tailwind
colors: {
  custom: {
    50: '#c1cc73',
    500: '#a2b731',
    950: '#000000',
  },
}
SCSS
$custom: #a2b731;
$custom-light: #c1cc73;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b731",
  "rgb": {
    "r": 162,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 69.403,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.73913,
    "c": 0.15487,
    "h": 118.2
  },
  "luminance": 0.4177
}

Semantic roles & 50–950 ramp

primary
#A2B731
secondary
#887CC8
accent
#47E15F
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A2B731

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

Preview Lab → · Contrast checker → · Palette generator →

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