#A2B31C#A2B31C

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

Color values

HEX#A2B31C
RGBrgb(162, 179, 28)
HSLhsl(67, 73%, 41%)
HSVhsv(67, 84%, 70%)
CMYKcmyk(9.5%, 0%, 84.4%, 29.8%)
CIE-LABlab(69.47, -23.40, 66.59)
CIE-LCHlch(69.47, 70.58, 109.36°)
OKLaboklab(72.89% -0.0717 0.1436)
OKLCHoklch(72.89% 0.161 116.5)
XYZxyz(31.2309, 40.0059, 7.1751)
Luminance0.4001 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B31C #2D1CB3
analogous
#B3781C #A2B31C #56B31C
triadic
#A2B31C #1CA2B3 #B31CA2
tetradic
#A2B31C #1CB378 #2D1CB3 #B31C56
square
#A2B31C #1CB378 #2D1CB3 #B31C56
split-complementary
#A2B31C #1C56B3 #781CB3
monochromatic
#42490B #727E14 #A2B31C #CADE2E #D8E763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2B31C#FFFFFF#000000##000000
##A2B31C1.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)
#BFAB2D
Tritanopia (blue-blind)
#ADA899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a2b31c;
/* rgb */ color: rgb(162, 179, 28);
/* oklch */ color: oklch(72.9% 0.161 116.5);
Tailwind
colors: {
  custom: {
    50: '#c2c969',
    500: '#a2b31c',
    950: '#000000',
  },
}
SCSS
$custom: #a2b31c;
$custom-light: #c2c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b31c",
  "rgb": {
    "r": 162,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 66.755,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.72886,
    "c": 0.16051,
    "h": 116.5
  },
  "luminance": 0.40005
}

Semantic roles & 50–950 ramp

primary
#A2B31C
secondary
#6C5FCB
accent
#38F04D
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A2B31C

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

Preview Lab → · Contrast checker → · Palette generator →

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