#A6A822#A6A822

#A6A822 is a light, vivid yellow. Relative luminance 0.362; OKLCH L 70.7% C 0.145 H 110.5°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#A6A822
RGBrgb(166, 168, 34)
HSLhsl(61, 66%, 40%)
HSVhsv(61, 80%, 66%)
CMYKcmyk(1.2%, 0%, 79.8%, 34.1%)
CIE-LABlab(66.69, -15.94, 62.74)
CIE-LCHlch(66.69, 64.74, 104.25°)
OKLaboklab(70.74% -0.0509 0.1362)
OKLCHoklch(70.74% 0.145 110.5)
XYZxyz(30.0184, 36.2286, 6.9246)
Luminance0.3623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A822 #2422A8
analogous
#A86722 #A6A822 #63A822
triadic
#A6A822 #22A6A8 #A822A6
tetradic
#A6A822 #22A867 #2422A8 #A82263
square
#A6A822 #22A867 #2422A8 #A82263
split-complementary
#A6A822 #2263A8 #6722A8
monochromatic
#41420D #747518 #A6A822 #D3D532 #DEE065

Accessibility & contrast

On white

2.55
#A6A822 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#A6A822 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A822
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A822#FFFFFF#000000##000000
##A6A8221.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#B7A42E
Tritanopia (blue-blind)
#B29D90
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a6a822;
/* rgb */ color: rgb(166, 168, 34);
/* oklch */ color: oklch(70.7% 0.145 110.5);
Tailwind
colors: {
  custom: {
    50: '#c4c16a',
    500: '#a6a822',
    950: '#000000',
  },
}
SCSS
$custom: #a6a822;
$custom-light: #c4c16a;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a822",
  "rgb": {
    "r": 166,
    "g": 168,
    "b": 34
  },
  "hsl": {
    "h": 60.896,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.70742,
    "c": 0.14541,
    "h": 110.5
  },
  "luminance": 0.36228
}

Semantic roles & 50–950 ramp

primary
#A6A822
secondary
#6261C5
accent
#3FE941
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A822

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

Preview Lab → · Contrast checker → · Palette generator →

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