#A6B31A#A6B31A

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

Color values

HEX#A6B31A
RGBrgb(166, 179, 26)
HSLhsl(65, 75%, 40%)
HSVhsv(65, 85%, 70%)
CMYKcmyk(7.3%, 0%, 85.5%, 29.8%)
CIE-LABlab(69.77, -21.74, 67.41)
CIE-LCHlch(69.77, 70.83, 107.87°)
OKLaboklab(73.2% -0.0675 0.1449)
OKLCHoklch(73.2% 0.16 115)
XYZxyz(32.0334, 40.4224, 7.0919)
Luminance0.4042 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B31A #271AB3
analogous
#B3731A #A6B31A #59B31A
triadic
#A6B31A #1AA6B3 #B31AA6
tetradic
#A6B31A #1AB373 #271AB3 #B31A59
square
#A6B31A #1AB373 #271AB3 #B31A59
split-complementary
#A6B31A #1A59B3 #731AB3
monochromatic
#43480A #747E12 #A6B31A #D1E02A #DCE860

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6B31A#FFFFFF#000000##000000
##A6B31A1.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)
#C0AC2C
Tritanopia (blue-blind)
#B1A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b31a;
/* rgb */ color: rgb(166, 179, 26);
/* oklch */ color: oklch(73.2% 0.160 115.0);
Tailwind
colors: {
  custom: {
    50: '#c5c969',
    500: '#a6b31a',
    950: '#000000',
  },
}
SCSS
$custom: #a6b31a;
$custom-light: #c5c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b31a",
  "rgb": {
    "r": 166,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 65.098,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.73197,
    "c": 0.15983,
    "h": 115
  },
  "luminance": 0.40422
}

Semantic roles & 50–950 ramp

primary
#A6B31A
secondary
#665DCC
accent
#37F146
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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