#A6A22C#A6A22C

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

Color values

HEX#A6A22C
RGBrgb(166, 162, 44)
HSLhsl(58, 58%, 41%)
HSVhsv(58, 73%, 65%)
CMYKcmyk(0%, 2.4%, 73.5%, 34.9%)
CIE-LABlab(65.07, -12.42, 58.01)
CIE-LCHlch(65.07, 59.33, 102.09°)
OKLaboklab(69.46% -0.0402 0.128)
OKLCHoklch(69.46% 0.134 107.5)
XYZxyz(29.1020, 34.1305, 7.4373)
Luminance0.3413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A22C #2C30A6
analogous
#A6652C #A6A22C #6DA62C
triadic
#A6A22C #2CA6A2 #A22CA6
tetradic
#A6A22C #2CA665 #2C30A6 #A62C6D
square
#A6A22C #2CA665 #2C30A6 #A62C6D
split-complementary
#A6A22C #2C6DA6 #652CA6
monochromatic
#454412 #76731F #A6A22C #CDC842 #DAD673

Accessibility & contrast

On white

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

On black

7.83
#A6A22C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A22C
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A22C#FFFFFF#000000##000000
##A6A22C1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a6a22c;
/* rgb */ color: rgb(166, 162, 44);
/* oklch */ color: oklch(69.5% 0.134 107.5);
Tailwind
colors: {
  custom: {
    50: '#c4bd6e',
    500: '#a6a22c',
    950: '#000000',
  },
}
SCSS
$custom: #a6a22c;
$custom-light: #c4bd6e;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a22c",
  "rgb": {
    "r": 166,
    "g": 162,
    "b": 44
  },
  "hsl": {
    "h": 58.033,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.69458,
    "c": 0.13417,
    "h": 107.5
  },
  "luminance": 0.3413
}

Semantic roles & 50–950 ramp

primary
#A6A22C
secondary
#6D6FC1
accent
#4CE146
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A6A22C

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

Preview Lab → · Contrast checker → · Palette generator →

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