#A2B31D#A2B31D

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

Color values

HEX#A2B31D
RGBrgb(162, 179, 29)
HSLhsl(67, 72%, 41%)
HSVhsv(67, 84%, 70%)
CMYKcmyk(9.5%, 0%, 83.8%, 29.8%)
CIE-LABlab(69.48, -23.37, 66.35)
CIE-LCHlch(69.48, 70.35, 109.40°)
OKLaboklab(72.89% -0.0716 0.1433)
OKLCHoklch(72.89% 0.16 116.5)
XYZxyz(31.2430, 40.0107, 7.2391)
Luminance0.4001 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B31D #2E1DB3
analogous
#B3791D #A2B31D #57B31D
triadic
#A2B31D #1DA2B3 #B31DA2
tetradic
#A2B31D #1DB379 #2E1DB3 #B31D57
square
#A2B31D #1DB379 #2E1DB3 #B31D57
split-complementary
#A2B31D #1D57B3 #791DB3
monochromatic
#434A0C #727E14 #A2B31D #CADD30 #D7E664

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2B31D#FFFFFF#000000##000000
##A2B31D1.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: #a2b31d;
/* rgb */ color: rgb(162, 179, 29);
/* oklch */ color: oklch(72.9% 0.160 116.5);
Tailwind
colors: {
  custom: {
    50: '#c2c96a',
    500: '#a2b31d',
    950: '#000000',
  },
}
SCSS
$custom: #a2b31d;
$custom-light: #c2c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b31d",
  "rgb": {
    "r": 162,
    "g": 179,
    "b": 29
  },
  "hsl": {
    "h": 66.8,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.7289,
    "c": 0.16014,
    "h": 116.5
  },
  "luminance": 0.4001
}

Semantic roles & 50–950 ramp

primary
#A2B31D
secondary
#6D61CB
accent
#39EF4E
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A2B31D

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

Preview Lab → · Contrast checker → · Palette generator →

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