#A6B417#A6B417

#A6B417 is a light, vivid yellow. Relative luminance 0.408; OKLCH L 73.4% C 0.162 H 115.3°. Best body text is #000000 at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#A6B417
RGBrgb(166, 180, 23)
HSLhsl(65, 77%, 40%)
HSVhsv(65, 87%, 71%)
CMYKcmyk(7.8%, 0%, 87.2%, 29.4%)
CIE-LABlab(70.04, -22.31, 68.26)
CIE-LCHlch(70.04, 71.82, 108.10°)
OKLaboklab(73.41% -0.0692 0.1463)
OKLCHoklch(73.41% 0.162 115.3)
XYZxyz(32.2028, 40.8119, 6.9915)
Luminance0.4081 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B417 #2517B4
analogous
#B47317 #A6B417 #58B417
triadic
#A6B417 #17A6B4 #B417A6
tetradic
#A6B417 #17B473 #2517B4 #B41758
square
#A6B417 #17B473 #2517B4 #B41758
split-complementary
#A6B417 #1758B4 #7317B4
monochromatic
#424709 #747E10 #A6B417 #D2E325 #DDEA5B

Accessibility & contrast

On white

2.29
#A6B417 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.16
#A6B417 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B417
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B417#FFFFFF#000000##000000
##A6B4171.002.299.169.16
#FFFFFF2.291.0021.0021.00
#0000009.1621.001.001.00
##0000009.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AA00
Deuteranopia (green-blind)
#C1AC2A
Tritanopia (blue-blind)
#B1A999
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a6b417;
/* rgb */ color: rgb(166, 180, 23);
/* oklch */ color: oklch(73.4% 0.162 115.3);
Tailwind
colors: {
  custom: {
    50: '#c5ca68',
    500: '#a6b417',
    950: '#000000',
  },
}
SCSS
$custom: #a6b417;
$custom-light: #c5ca68;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b417",
  "rgb": {
    "r": 166,
    "g": 180,
    "b": 23
  },
  "hsl": {
    "h": 65.35,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.73415,
    "c": 0.16184,
    "h": 115.3
  },
  "luminance": 0.40811
}

Semantic roles & 50–950 ramp

primary
#A6B417
secondary
#6459CE
accent
#34F445
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6B417

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

Preview Lab → · Contrast checker → · Palette generator →

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