#A6A331#A6A331

#A6A331 is a light, vivid yellow. Relative luminance 0.345; OKLCH L 69.7% C 0.132 H 107.9°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#A6A331
RGBrgb(166, 163, 49)
HSLhsl(58, 54%, 42%)
HSVhsv(58, 70%, 65%)
CMYKcmyk(0%, 1.8%, 70.5%, 34.9%)
CIE-LABlab(65.38, -12.70, 56.46)
CIE-LCHlch(65.38, 57.87, 102.67°)
OKLaboklab(69.72% -0.0405 0.1256)
OKLCHoklch(69.72% 0.132 107.9)
XYZxyz(29.3785, 34.5241, 8.0214)
Luminance0.3452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A331 #3134A6
analogous
#A66931 #A6A331 #6EA631
triadic
#A6A331 #31A6A3 #A331A6
tetradic
#A6A331 #31A669 #3134A6 #A6316E
square
#A6A331 #31A669 #3134A6 #A6316E
split-complementary
#A6A331 #316EA6 #6931A6
monochromatic
#474615 #777523 #A6A331 #CAC64A #D8D57A

Accessibility & contrast

On white

2.66
#A6A331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#A6A331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A331
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A331#FFFFFF#000000##000000
##A6A3311.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C1E
Deuteranopia (green-blind)
#B3A139
Tritanopia (blue-blind)
#B2988D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a6a331;
/* rgb */ color: rgb(166, 163, 49);
/* oklch */ color: oklch(69.7% 0.132 107.9);
Tailwind
colors: {
  custom: {
    50: '#c4be71',
    500: '#a6a331',
    950: '#000000',
  },
}
SCSS
$custom: #a6a331;
$custom-light: #c4be71;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a331",
  "rgb": {
    "r": 166,
    "g": 163,
    "b": 49
  },
  "hsl": {
    "h": 58.462,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.69716,
    "c": 0.13199,
    "h": 107.9
  },
  "luminance": 0.34523
}

Semantic roles & 50–950 ramp

primary
#A6A331
secondary
#7375C0
accent
#4EDE4A
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A6A331

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

Preview Lab → · Contrast checker → · Palette generator →

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