#A6A21F#A6A21F

#A6A21F 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#A6A21F
RGBrgb(166, 162, 31)
HSLhsl(58, 69%, 39%)
HSVhsv(58, 81%, 65%)
CMYKcmyk(0%, 2.4%, 81.3%, 34.9%)
CIE-LABlab(65.00, -12.94, 62.11)
CIE-LCHlch(65.00, 63.45, 101.77°)
OKLaboklab(69.38% -0.0428 0.1343)
OKLCHoklch(69.38% 0.141 107.7)
XYZxyz(28.8947, 34.0476, 6.3459)
Luminance0.3405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A21F #1F23A6
analogous
#A65E1F #A6A21F #66A61F
triadic
#A6A21F #1FA6A2 #A21FA6
tetradic
#A6A21F #1FA65E #1F23A6 #A61F66
square
#A6A21F #1FA65E #1F23A6 #A61F66
split-complementary
#A6A21F #1F66A6 #5E1FA6
monochromatic
#3F3D0C #727015 #A6A21F #D7D22B #E1DD5E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6A21F#FFFFFF#000000##000000
##A6A21F1.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)
#B2A02B
Tritanopia (blue-blind)
#B3978A
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a6a21f;
/* rgb */ color: rgb(166, 162, 31);
/* oklch */ color: oklch(69.4% 0.141 107.7);
Tailwind
colors: {
  custom: {
    50: '#c4bd68',
    500: '#a6a21f',
    950: '#000000',
  },
}
SCSS
$custom: #a6a21f;
$custom-light: #c4bd68;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a21f",
  "rgb": {
    "r": 166,
    "g": 162,
    "b": 31
  },
  "hsl": {
    "h": 58.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.69385,
    "c": 0.14095,
    "h": 107.7
  },
  "luminance": 0.34047
}

Semantic roles & 50–950 ramp

primary
#A6A21F
secondary
#5B5EC5
accent
#42EB3C
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A21F

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

Preview Lab → · Contrast checker → · Palette generator →

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