#A6A22A#A6A22A

#A6A22A is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.4% C 0.135 H 107.5°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#A6A22A
RGBrgb(166, 162, 42)
HSLhsl(58, 60%, 41%)
HSVhsv(58, 75%, 65%)
CMYKcmyk(0%, 2.4%, 74.7%, 34.9%)
CIE-LABlab(65.05, -12.51, 58.71)
CIE-LCHlch(65.05, 60.03, 102.03°)
OKLaboklab(69.45% -0.0407 0.1291)
OKLCHoklch(69.45% 0.135 107.5)
XYZxyz(29.0653, 34.1158, 7.2440)
Luminance0.3412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A22A #2A2EA6
analogous
#A6642A #A6A22A #6CA62A
triadic
#A6A22A #2AA6A2 #A22AA6
tetradic
#A6A22A #2AA664 #2A2EA6 #A62A6C
square
#A6A22A #2AA664 #2A2EA6 #A62A6C
split-complementary
#A6A22A #2A6CA6 #642AA6
monochromatic
#444311 #75721E #A6A22A #CECA3F #DBD770

Accessibility & contrast

On white

2.68
#A6A22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#A6A22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A22A
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A22A#FFFFFF#000000##000000
##A6A22A1.002.687.827.82
#FFFFFF2.681.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B11
Deuteranopia (green-blind)
#B2A033
Tritanopia (blue-blind)
#B2978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a6a22a;
/* rgb */ color: rgb(166, 162, 42);
/* oklch */ color: oklch(69.4% 0.135 107.5);
Tailwind
colors: {
  custom: {
    50: '#c4bd6d',
    500: '#a6a22a',
    950: '#000000',
  },
}
SCSS
$custom: #a6a22a;
$custom-light: #c4bd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a22a",
  "rgb": {
    "r": 166,
    "g": 162,
    "b": 42
  },
  "hsl": {
    "h": 58.065,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.69445,
    "c": 0.13535,
    "h": 107.5
  },
  "luminance": 0.34115
}

Semantic roles & 50–950 ramp

primary
#A6A22A
secondary
#6A6DC2
accent
#4AE345
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A6A22A

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

Preview Lab → · Contrast checker → · Palette generator →

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