#A2B417#A2B417

#A2B417 is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.1% C 0.163 H 116.8°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#A2B417
RGBrgb(162, 180, 23)
HSLhsl(67, 77%, 40%)
HSVhsv(67, 87%, 71%)
CMYKcmyk(10%, 0%, 87.2%, 29.4%)
CIE-LABlab(69.74, -24.02, 67.89)
CIE-LCHlch(69.74, 72.02, 109.48°)
OKLaboklab(73.1% -0.0737 0.1457)
OKLCHoklch(73.1% 0.163 116.8)
XYZxyz(31.3771, 40.3862, 6.9528)
Luminance0.4039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B417 #2917B4
analogous
#B47817 #A2B417 #54B417
triadic
#A2B417 #17A2B4 #B417A2
tetradic
#A2B417 #17B478 #2917B4 #B41754
square
#A2B417 #17B478 #2917B4 #B41754
split-complementary
#A2B417 #1754B4 #7817B4
monochromatic
#404709 #717E10 #A2B417 #CDE325 #DAEA5B

Accessibility & contrast

On white

2.31
#A2B417 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.08
#A2B417 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B417
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B417#FFFFFF#000000##000000
##A2B4171.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#BFAB2A
Tritanopia (blue-blind)
#ADA999
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a2b417;
/* rgb */ color: rgb(162, 180, 23);
/* oklch */ color: oklch(73.1% 0.163 116.8);
Tailwind
colors: {
  custom: {
    50: '#c2ca68',
    500: '#a2b417',
    950: '#000000',
  },
}
SCSS
$custom: #a2b417;
$custom-light: #c2ca68;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b417",
  "rgb": {
    "r": 162,
    "g": 180,
    "b": 23
  },
  "hsl": {
    "h": 66.879,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.73099,
    "c": 0.16326,
    "h": 116.8
  },
  "luminance": 0.40386
}

Semantic roles & 50–950 ramp

primary
#A2B417
secondary
#6759CE
accent
#34F44A
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A2B417

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

Preview Lab → · Contrast checker → · Palette generator →

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