#A6AF22#A6AF22

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

Color values

HEX#A6AF22
RGBrgb(166, 175, 34)
HSLhsl(64, 67%, 41%)
HSVhsv(64, 81%, 69%)
CMYKcmyk(5.1%, 0%, 80.6%, 31.4%)
CIE-LABlab(68.67, -19.49, 64.48)
CIE-LCHlch(68.67, 67.36, 106.82°)
OKLaboklab(72.32% -0.0608 0.1399)
OKLCHoklch(72.32% 0.153 113.5)
XYZxyz(31.3456, 38.8831, 7.3670)
Luminance0.3888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF22 #2B22AF
analogous
#AF7122 #A6AF22 #5FAF22
triadic
#A6AF22 #22A6AF #AF22A6
tetradic
#A6AF22 #22AF71 #2B22AF #AF225F
square
#A6AF22 #22AF71 #2B22AF #AF225F
split-complementary
#A6AF22 #225FAF #7122AF
monochromatic
#45490E #757C18 #A6AF22 #CED836 #DAE269

Accessibility & contrast

On white

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

On black

8.78
#A6AF22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6AF22
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6AF22#FFFFFF#000000##000000
##A6AF221.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BCA930
Tritanopia (blue-blind)
#B2A496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a6af22;
/* rgb */ color: rgb(166, 175, 34);
/* oklch */ color: oklch(72.3% 0.153 113.5);
Tailwind
colors: {
  custom: {
    50: '#c4c66b',
    500: '#a6af22',
    950: '#000000',
  },
}
SCSS
$custom: #a6af22;
$custom-light: #c4c66b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af22",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 34
  },
  "hsl": {
    "h": 63.83,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72321,
    "c": 0.15255,
    "h": 113.5
  },
  "luminance": 0.38882
}

Semantic roles & 50–950 ramp

primary
#A6AF22
secondary
#6B65C8
accent
#3DEA48
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6AF22

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

Preview Lab → · Contrast checker → · Palette generator →

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