#A6AF2A#A6AF2A

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

Color values

HEX#A6AF2A
RGBrgb(166, 175, 42)
HSLhsl(64, 61%, 43%)
HSVhsv(64, 76%, 69%)
CMYKcmyk(5.1%, 0%, 76%, 31.4%)
CIE-LABlab(68.70, -19.18, 62.11)
CIE-LCHlch(68.70, 65.00, 107.16°)
OKLaboklab(72.36% -0.0593 0.1363)
OKLCHoklch(72.36% 0.149 113.5)
XYZxyz(31.4748, 38.9348, 8.0472)
Luminance0.3893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF2A #332AAF
analogous
#AF752A #A6AF2A #64AF2A
triadic
#A6AF2A #2AA6AF #AF2AA6
tetradic
#A6AF2A #2AAF75 #332AAF #AF2A64
square
#A6AF2A #2AAF75 #332AAF #AF2A64
split-complementary
#A6AF2A #2A64AF #752AAF
monochromatic
#484C12 #777E1E #A6AF2A #C9D244 #D7DE75

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6AF2A#FFFFFF#000000##000000
##A6AF2A1.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)
#BCA607
Deuteranopia (green-blind)
#BCA936
Tritanopia (blue-blind)
#B1A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a6af2a;
/* rgb */ color: rgb(166, 175, 42);
/* oklch */ color: oklch(72.4% 0.149 113.5);
Tailwind
colors: {
  custom: {
    50: '#c4c66f',
    500: '#a6af2a',
    950: '#000000',
  },
}
SCSS
$custom: #a6af2a;
$custom-light: #c4c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af2a",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 64.06,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72363,
    "c": 0.14863,
    "h": 113.5
  },
  "luminance": 0.38934
}

Semantic roles & 50–950 ramp

primary
#A6AF2A
secondary
#756FC6
accent
#43E44E
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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