#A6A31F#A6A31F

#A6A31F is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.6% C 0.142 H 108.2°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#A6A31F
RGBrgb(166, 163, 31)
HSLhsl(59, 69%, 39%)
HSVhsv(59, 81%, 65%)
CMYKcmyk(0%, 1.8%, 81.3%, 34.9%)
CIE-LABlab(65.28, -13.46, 62.36)
CIE-LCHlch(65.28, 63.79, 102.18°)
OKLaboklab(69.61% -0.0443 0.1348)
OKLCHoklch(69.61% 0.142 108.2)
XYZxyz(29.0716, 34.4013, 6.4048)
Luminance0.3440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A31F #1F22A6
analogous
#A65F1F #A6A31F #65A61F
triadic
#A6A31F #1FA6A3 #A31FA6
tetradic
#A6A31F #1FA65F #1F22A6 #A61F65
square
#A6A31F #1FA65F #1F22A6 #A61F65
split-complementary
#A6A31F #1F65A6 #5F1FA6
monochromatic
#3F3E0C #727015 #A6A31F #D7D42B #E1DE5E

Accessibility & contrast

On white

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

On black

7.88
#A6A31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A31F
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A31F#FFFFFF#000000##000000
##A6A31F1.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B3A02B
Tritanopia (blue-blind)
#B3988B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a6a31f;
/* rgb */ color: rgb(166, 163, 31);
/* oklch */ color: oklch(69.6% 0.142 108.2);
Tailwind
colors: {
  custom: {
    50: '#c4bd68',
    500: '#a6a31f',
    950: '#000000',
  },
}
SCSS
$custom: #a6a31f;
$custom-light: #c4bd68;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a31f",
  "rgb": {
    "r": 166,
    "g": 163,
    "b": 31
  },
  "hsl": {
    "h": 58.667,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.69608,
    "c": 0.1419,
    "h": 108.2
  },
  "luminance": 0.344
}

Semantic roles & 50–950 ramp

primary
#A6A31F
secondary
#5B5EC5
accent
#40EB3C
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A31F

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

Preview Lab → · Contrast checker → · Palette generator →

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