#A6AF4E#A6AF4E

#A6AF4E is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.7% C 0.122 H 113.9°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#A6AF4E
RGBrgb(166, 175, 78)
HSLhsl(66, 38%, 50%)
HSVhsv(66, 55%, 69%)
CMYKcmyk(5.1%, 0%, 55.4%, 31.4%)
CIE-LABlab(68.98, -16.90, 47.82)
CIE-LCHlch(68.98, 50.72, 109.47°)
OKLaboklab(72.67% -0.0493 0.1115)
OKLCHoklch(72.67% 0.122 113.9)
XYZxyz(32.4317, 39.3175, 13.0868)
Luminance0.3932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF4E #574EAF
analogous
#AF884E #A6AF4E #76AF4E
triadic
#A6AF4E #4EA6AF #AF4EA6
tetradic
#A6AF4E #4EAF88 #574EAF #AF4E76
square
#A6AF4E #4EAF88 #574EAF #AF4E76
split-complementary
#A6AF4E #4E76AF #884EAF
monochromatic
#565A28 #7E853B #A6AF4E #BCC378 #D1D6A2

Accessibility & contrast

On white

2.37
#A6AF4E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#A6AF4E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6AF4E
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6AF4E#FFFFFF#000000##000000
##A6AF4E1.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA744
Deuteranopia (green-blind)
#BAA954
Tritanopia (blue-blind)
#B0A69A
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a6af4e;
/* rgb */ color: rgb(166, 175, 78);
/* oklch */ color: oklch(72.7% 0.122 113.9);
Tailwind
colors: {
  custom: {
    50: '#c2c683',
    500: '#a6af4e',
    950: '#000000',
  },
}
SCSS
$custom: #a6af4e;
$custom-light: #c2c683;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af4e",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 78
  },
  "hsl": {
    "h": 65.567,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.72674,
    "c": 0.12189,
    "h": 113.9
  },
  "luminance": 0.39317
}

Semantic roles & 50–950 ramp

primary
#A6AF4E
secondary
#9A96C3
accent
#5ACE64
background
#FCFCF8
surface
#F8F8EF
border
#D1D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #A6AF4E

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

Preview Lab → · Contrast checker → · Palette generator →

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