#A7B22A#A7B22A

#A7B22A is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.1% C 0.152 H 114.3°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#A7B22A
RGBrgb(167, 178, 42)
HSLhsl(65, 62%, 43%)
HSVhsv(65, 76%, 70%)
CMYKcmyk(6.2%, 0%, 76.4%, 30.2%)
CIE-LABlab(69.63, -20.26, 62.99)
CIE-LCHlch(69.63, 66.17, 107.83°)
OKLaboklab(73.12% -0.0623 0.1381)
OKLCHoklch(73.12% 0.152 114.3)
XYZxyz(32.2756, 40.2241, 8.2538)
Luminance0.4022 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B22A #352AB2
analogous
#B2792A #A7B22A #63B22A
triadic
#A7B22A #2AA7B2 #B22AA7
tetradic
#A7B22A #2AB279 #352AB2 #B22A63
square
#A7B22A #2AB279 #352AB2 #B22A63
split-complementary
#A7B22A #2A63B2 #792AB2
monochromatic
#4A4F13 #79801E #A7B22A #C8D346 #D7DF77

Accessibility & contrast

On white

2.32
#A7B22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#A7B22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B22A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B22A#FFFFFF#000000##000000
##A7B22A1.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA905
Deuteranopia (green-blind)
#BFAB36
Tritanopia (blue-blind)
#B2A799
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a7b22a;
/* rgb */ color: rgb(167, 178, 42);
/* oklch */ color: oklch(73.1% 0.152 114.3);
Tailwind
colors: {
  custom: {
    50: '#c5c86f',
    500: '#a7b22a',
    950: '#000000',
  },
}
SCSS
$custom: #a7b22a;
$custom-light: #c5c86f;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b22a",
  "rgb": {
    "r": 167,
    "g": 178,
    "b": 42
  },
  "hsl": {
    "h": 64.853,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.73124,
    "c": 0.15155,
    "h": 114.3
  },
  "luminance": 0.40223
}

Semantic roles & 50–950 ramp

primary
#A7B22A
secondary
#7871C7
accent
#43E550
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7B22A

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

Preview Lab → · Contrast checker → · Palette generator →

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