#A2B231#A2B231

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

Color values

HEX#A2B231
RGBrgb(162, 178, 49)
HSLhsl(67, 57%, 45%)
HSVhsv(67, 72%, 70%)
CMYKcmyk(9%, 0%, 72.5%, 30.2%)
CIE-LABlab(69.29, -22.06, 60.17)
CIE-LCHlch(69.29, 64.09, 110.13°)
OKLaboklab(72.77% -0.0664 0.1336)
OKLCHoklch(72.77% 0.149 116.4)
XYZxyz(31.3758, 39.7444, 8.9237)
Luminance0.3974 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B231 #4131B2
analogous
#B28231 #A2B231 #62B231
triadic
#A2B231 #31A2B2 #B231A2
tetradic
#A2B231 #31B282 #4131B2 #B23162
square
#A2B231 #31B282 #4131B2 #B23162
split-complementary
#A2B231 #3162B2 #8231B2
monochromatic
#4B5217 #768224 #A2B231 #BFCF51 #D1DC81

Accessibility & contrast

On white

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

On black

8.95
#A2B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B231
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B231#FFFFFF#000000##000000
##A2B2311.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a2b231;
/* rgb */ color: rgb(162, 178, 49);
/* oklch */ color: oklch(72.8% 0.149 116.4);
Tailwind
colors: {
  custom: {
    50: '#c1c872',
    500: '#a2b231',
    950: '#000000',
  },
}
SCSS
$custom: #a2b231;
$custom-light: #c1c872;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b231",
  "rgb": {
    "r": 162,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 67.442,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72768,
    "c": 0.14916,
    "h": 116.4
  },
  "luminance": 0.39744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A2B231

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

Preview Lab → · Contrast checker → · Palette generator →

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