#A6B22B#A6B22B

#A6B22B is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.0% C 0.151 H 114.7°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#A6B22B
RGBrgb(166, 178, 43)
HSLhsl(65, 61%, 43%)
HSVhsv(65, 76%, 70%)
CMYKcmyk(6.7%, 0%, 75.8%, 30.2%)
CIE-LABlab(69.56, -20.64, 62.58)
CIE-LCHlch(69.56, 65.89, 108.26°)
OKLaboklab(73.05% -0.0632 0.1375)
OKLCHoklch(73.05% 0.151 114.7)
XYZxyz(32.0833, 40.1228, 8.3394)
Luminance0.4012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B22B #372BB2
analogous
#B27A2B #A6B22B #62B22B
triadic
#A6B22B #2BA6B2 #B22BA6
tetradic
#A6B22B #2BB27A #372BB2 #B22B62
square
#A6B22B #2BB27A #372BB2 #B22B62
split-complementary
#A6B22B #2B62B2 #7A2BB2
monochromatic
#4A4F13 #78811F #A6B22B #C6D348 #D6DF79

Accessibility & contrast

On white

2.33
#A6B22B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#A6B22B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B22B
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B22B#FFFFFF#000000##000000
##A6B22B1.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA908
Deuteranopia (green-blind)
#BEAB37
Tritanopia (blue-blind)
#B1A799
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b22b;
/* rgb */ color: rgb(166, 178, 43);
/* oklch */ color: oklch(73.0% 0.151 114.7);
Tailwind
colors: {
  custom: {
    50: '#c4c86f',
    500: '#a6b22b',
    950: '#000000',
  },
}
SCSS
$custom: #a6b22b;
$custom-light: #c4c86f;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b22b",
  "rgb": {
    "r": 166,
    "g": 178,
    "b": 43
  },
  "hsl": {
    "h": 65.333,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.73049,
    "c": 0.15132,
    "h": 114.7
  },
  "luminance": 0.40122
}

Semantic roles & 50–950 ramp

primary
#A6B22B
secondary
#7A72C7
accent
#44E452
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B22B

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

Preview Lab → · Contrast checker → · Palette generator →

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