#A6A21E#A6A21E

#A6A21E is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.4% C 0.141 H 107.7°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#A6A21E
RGBrgb(166, 162, 30)
HSLhsl(58, 69%, 38%)
HSVhsv(58, 82%, 65%)
CMYKcmyk(0%, 2.4%, 81.9%, 34.9%)
CIE-LABlab(65.00, -12.97, 62.39)
CIE-LCHlch(65.00, 63.72, 101.75°)
OKLaboklab(69.38% -0.043 0.1347)
OKLCHoklch(69.38% 0.141 107.7)
XYZxyz(28.8818, 34.0424, 6.2775)
Luminance0.3404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A21E #1E22A6
analogous
#A65E1E #A6A21E #66A61E
triadic
#A6A21E #1EA6A2 #A21EA6
tetradic
#A6A21E #1EA65E #1E22A6 #A61E66
square
#A6A21E #1EA65E #1E22A6 #A61E66
split-complementary
#A6A21E #1E66A6 #5E1EA6
monochromatic
#3E3D0B #726F15 #A6A21E #D8D329 #E2DE5D

Accessibility & contrast

On white

2.69
#A6A21E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#A6A21E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A21E
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A21E#FFFFFF#000000##000000
##A6A21E1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#B3A02A
Tritanopia (blue-blind)
#B3978A
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a6a21e;
/* rgb */ color: rgb(166, 162, 30);
/* oklch */ color: oklch(69.4% 0.141 107.7);
Tailwind
colors: {
  custom: {
    50: '#c4bd68',
    500: '#a6a21e',
    950: '#000000',
  },
}
SCSS
$custom: #a6a21e;
$custom-light: #c4bd68;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a21e",
  "rgb": {
    "r": 166,
    "g": 162,
    "b": 30
  },
  "hsl": {
    "h": 58.235,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.6938,
    "c": 0.14137,
    "h": 107.7
  },
  "luminance": 0.34041
}

Semantic roles & 50–950 ramp

primary
#A6A21E
secondary
#5A5DC6
accent
#41EC3C
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A21E

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

Preview Lab → · Contrast checker → · Palette generator →

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