#A2B317#A2B317

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

Color values

HEX#A2B317
RGBrgb(162, 179, 23)
HSLhsl(67, 77%, 40%)
HSVhsv(67, 87%, 70%)
CMYKcmyk(9.5%, 0%, 87.2%, 29.8%)
CIE-LABlab(69.46, -23.53, 67.66)
CIE-LCHlch(69.46, 71.63, 109.18°)
OKLaboklab(72.87% -0.0724 0.1452)
OKLCHoklch(72.87% 0.162 116.5)
XYZxyz(31.1760, 39.9839, 6.8858)
Luminance0.3998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B317 #2817B3
analogous
#B37617 #A2B317 #54B317
triadic
#A2B317 #17A2B3 #B317A2
tetradic
#A2B317 #17B376 #2817B3 #B31754
square
#A2B317 #17B376 #2817B3 #B31754
split-complementary
#A2B317 #1754B3 #7617B3
monochromatic
#404709 #717D10 #A2B317 #CEE324 #DAEA5B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2B317#FFFFFF#000000##000000
##A2B3171.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)
#BFAB2A
Tritanopia (blue-blind)
#ADA898
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a2b317;
/* rgb */ color: rgb(162, 179, 23);
/* oklch */ color: oklch(72.9% 0.162 116.5);
Tailwind
colors: {
  custom: {
    50: '#c2c968',
    500: '#a2b317',
    950: '#000000',
  },
}
SCSS
$custom: #a2b317;
$custom-light: #c2c968;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b317",
  "rgb": {
    "r": 162,
    "g": 179,
    "b": 23
  },
  "hsl": {
    "h": 66.538,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.72869,
    "c": 0.16219,
    "h": 116.5
  },
  "luminance": 0.39983
}

Semantic roles & 50–950 ramp

primary
#A2B317
secondary
#6558CD
accent
#34F449
background
#FCFCF6
surface
#F8F8EB
border
#D1D1C6
text
#131307
muted
#82827A

Preview Lab

Preview with #A2B317

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

Preview Lab → · Contrast checker → · Palette generator →

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