#A6B317#A6B317

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

Color values

HEX#A6B317
RGBrgb(166, 179, 23)
HSLhsl(65, 77%, 40%)
HSVhsv(65, 87%, 70%)
CMYKcmyk(7.3%, 0%, 87.2%, 29.8%)
CIE-LABlab(69.76, -21.82, 68.03)
CIE-LCHlch(69.76, 71.44, 107.78°)
OKLaboklab(73.19% -0.0678 0.1458)
OKLCHoklch(73.19% 0.161 115)
XYZxyz(32.0017, 40.4097, 6.9245)
Luminance0.4041 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B317 #2417B3
analogous
#B37217 #A6B317 #58B317
triadic
#A6B317 #17A6B3 #B317A6
tetradic
#A6B317 #17B372 #2417B3 #B31758
square
#A6B317 #17B372 #2417B3 #B31758
split-complementary
#A6B317 #1758B3 #7217B3
monochromatic
#414709 #747D10 #A6B317 #D3E324 #DEEA5B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6B317#FFFFFF#000000##000000
##A6B3171.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)
#C1A900
Deuteranopia (green-blind)
#C0AC2A
Tritanopia (blue-blind)
#B2A898
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b317;
/* rgb */ color: rgb(166, 179, 23);
/* oklch */ color: oklch(73.2% 0.161 115.0);
Tailwind
colors: {
  custom: {
    50: '#c5c968',
    500: '#a6b317',
    950: '#000000',
  },
}
SCSS
$custom: #a6b317;
$custom-light: #c5c968;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b317",
  "rgb": {
    "r": 166,
    "g": 179,
    "b": 23
  },
  "hsl": {
    "h": 65,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.73187,
    "c": 0.16081,
    "h": 115
  },
  "luminance": 0.40409
}

Semantic roles & 50–950 ramp

primary
#A6B317
secondary
#6258CD
accent
#34F444
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6B317

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

Preview Lab → · Contrast checker → · Palette generator →

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