#A6B321#A6B321

#A6B321 is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.2% C 0.157 H 115.0°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#A6B321
RGBrgb(166, 179, 33)
HSLhsl(65, 69%, 42%)
HSVhsv(65, 82%, 70%)
CMYKcmyk(7.3%, 0%, 81.6%, 29.8%)
CIE-LABlab(69.79, -21.53, 65.74)
CIE-LCHlch(69.79, 69.17, 108.13°)
OKLaboklab(73.22% -0.0665 0.1424)
OKLCHoklch(73.22% 0.157 115)
XYZxyz(32.1215, 40.4576, 7.5555)
Luminance0.4046 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B321 #2E21B3
analogous
#B37721 #A6B321 #5DB321
triadic
#A6B321 #21A6B3 #B321A6
tetradic
#A6B321 #21B377 #2E21B3 #B3215D
square
#A6B321 #21B377 #2E21B3 #B3215D
split-complementary
#A6B321 #215DB3 #7721B3
monochromatic
#464C0E #767F17 #A6B321 #CCDA37 #D9E46B

Accessibility & contrast

On white

2.31
#A6B321 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#A6B321 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B321
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B321#FFFFFF#000000##000000
##A6B3211.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA00
Deuteranopia (green-blind)
#C0AC30
Tritanopia (blue-blind)
#B1A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b321;
/* rgb */ color: rgb(166, 179, 33);
/* oklch */ color: oklch(73.2% 0.157 115.0);
Tailwind
colors: {
  custom: {
    50: '#c4c96b',
    500: '#a6b321',
    950: '#000000',
  },
}
SCSS
$custom: #a6b321;
$custom-light: #c4c96b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b321",
  "rgb": {
    "r": 166,
    "g": 179,
    "b": 33
  },
  "hsl": {
    "h": 65.342,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.73225,
    "c": 0.15718,
    "h": 115
  },
  "luminance": 0.40457
}

Semantic roles & 50–950 ramp

primary
#A6B321
secondary
#6F66CA
accent
#3CEC4C
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6B321

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

Preview Lab → · Contrast checker → · Palette generator →

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