#A6B117#A6B117

#A6B117 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.7% C 0.159 H 114.2°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#A6B117
RGBrgb(166, 177, 23)
HSLhsl(64, 77%, 39%)
HSVhsv(64, 87%, 69%)
CMYKcmyk(6.2%, 0%, 87%, 30.6%)
CIE-LABlab(69.19, -20.82, 67.57)
CIE-LCHlch(69.19, 70.70, 107.13°)
OKLaboklab(72.73% -0.0651 0.1448)
OKLCHoklch(72.73% 0.159 114.2)
XYZxyz(31.6037, 39.6138, 6.7918)
Luminance0.3961 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B117 #2217B1
analogous
#B16F17 #A6B117 #59B117
triadic
#A6B117 #17A6B1 #B117A6
tetradic
#A6B117 #17B16F #2217B1 #B11759
square
#A6B117 #17B16F #2217B1 #B11759
split-complementary
#A6B117 #1759B1 #6F17B1
monochromatic
#404509 #737B10 #A6B117 #D5E223 #DFE959

Accessibility & contrast

On white

2.35
#A6B117 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.92
#A6B117 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B117
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B117#FFFFFF#000000##000000
##A6B1171.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BEAA2A
Tritanopia (blue-blind)
#B2A697
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a6b117;
/* rgb */ color: rgb(166, 177, 23);
/* oklch */ color: oklch(72.7% 0.159 114.2);
Tailwind
colors: {
  custom: {
    50: '#c5c868',
    500: '#a6b117',
    950: '#000000',
  },
}
SCSS
$custom: #a6b117;
$custom-light: #c5c868;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b117",
  "rgb": {
    "r": 166,
    "g": 177,
    "b": 23
  },
  "hsl": {
    "h": 64.286,
    "s": 77,
    "l": 39.216
  },
  "oklch": {
    "l": 0.72732,
    "c": 0.15874,
    "h": 114.2
  },
  "luminance": 0.39613
}

Semantic roles & 50–950 ramp

primary
#A6B117
secondary
#5F57CD
accent
#34F442
background
#FCFCF6
surface
#F8F8EB
border
#D1D1C6
text
#131307
muted
#82827A

Preview Lab

Preview with #A6B117

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

Preview Lab → · Contrast checker → · Palette generator →

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