#A6AF2F#A6AF2F

#A6AF2F is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.4% C 0.146 H 113.5°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#A6AF2F
RGBrgb(166, 175, 47)
HSLhsl(64, 58%, 44%)
HSVhsv(64, 73%, 69%)
CMYKcmyk(5.1%, 0%, 73.1%, 31.4%)
CIE-LABlab(68.73, -18.95, 60.45)
CIE-LCHlch(68.73, 63.35, 107.41°)
OKLaboklab(72.39% -0.0582 0.1337)
OKLCHoklch(72.39% 0.146 113.5)
XYZxyz(31.5699, 38.9728, 8.5482)
Luminance0.3897 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF2F #382FAF
analogous
#AF782F #A6AF2F #66AF2F
triadic
#A6AF2F #2FA6AF #AF2FA6
tetradic
#A6AF2F #2FAF78 #382FAF #AF2F66
square
#A6AF2F #2FAF78 #382FAF #AF2F66
split-complementary
#A6AF2F #2F66AF #782FAF
monochromatic
#4A4F15 #787F22 #A6AF2F #C6CF4C #D5DC7C

Accessibility & contrast

On white

2.39
#A6AF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#A6AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6AF2F
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6AF2F#FFFFFF#000000##000000
##A6AF2F1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA616
Deuteranopia (green-blind)
#BCA939
Tritanopia (blue-blind)
#B1A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a6af2f;
/* rgb */ color: rgb(166, 175, 47);
/* oklch */ color: oklch(72.4% 0.146 113.5);
Tailwind
colors: {
  custom: {
    50: '#c4c671',
    500: '#a6af2f',
    950: '#000000',
  },
}
SCSS
$custom: #a6af2f;
$custom-light: #c4c671;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af2f",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 64.219,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.72394,
    "c": 0.1458,
    "h": 113.5
  },
  "luminance": 0.38972
}

Semantic roles & 50–950 ramp

primary
#A6AF2F
secondary
#7B75C4
accent
#47E152
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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