#A2B31E#A2B31E

#A2B31E is a light, vivid yellow. Relative luminance 0.400; OKLCH L 72.9% C 0.160 H 116.6°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#A2B31E
RGBrgb(162, 179, 30)
HSLhsl(67, 71%, 41%)
HSVhsv(67, 83%, 70%)
CMYKcmyk(9.5%, 0%, 83.2%, 29.8%)
CIE-LABlab(69.48, -23.33, 66.11)
CIE-LCHlch(69.48, 70.11, 109.44°)
OKLaboklab(72.89% -0.0714 0.1429)
OKLCHoklch(72.89% 0.16 116.6)
XYZxyz(31.2556, 40.0158, 7.3053)
Luminance0.4002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B31E #2F1EB3
analogous
#B3791E #A2B31E #57B31E
triadic
#A2B31E #1EA2B3 #B31EA2
tetradic
#A2B31E #1EB379 #2F1EB3 #B31E57
square
#A2B31E #1EB379 #2F1EB3 #B31E57
split-complementary
#A2B31E #1E57B3 #791EB3
monochromatic
#434A0C #737F15 #A2B31E #C9DD32 #D7E566

Accessibility & contrast

On white

2.33
#A2B31E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#A2B31E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B31E
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B31E#FFFFFF#000000##000000
##A2B31E1.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BEAB2E
Tritanopia (blue-blind)
#ADA899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a2b31e;
/* rgb */ color: rgb(162, 179, 30);
/* oklch */ color: oklch(72.9% 0.160 116.6);
Tailwind
colors: {
  custom: {
    50: '#c2c96a',
    500: '#a2b31e',
    950: '#000000',
  },
}
SCSS
$custom: #a2b31e;
$custom-light: #c2c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b31e",
  "rgb": {
    "r": 162,
    "g": 179,
    "b": 30
  },
  "hsl": {
    "h": 66.846,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72894,
    "c": 0.15975,
    "h": 116.6
  },
  "luminance": 0.40015
}

Semantic roles & 50–950 ramp

primary
#A2B31E
secondary
#6E62CB
accent
#3AEE4E
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A2B31E

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

Preview Lab → · Contrast checker → · Palette generator →

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