#A7A222#A7A222

#A7A222 is a light, vivid yellow. Relative luminance 0.342; OKLCH L 69.5% C 0.139 H 107.2°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#A7A222
RGBrgb(167, 162, 34)
HSLhsl(58, 66%, 39%)
HSVhsv(58, 80%, 65%)
CMYKcmyk(0%, 3%, 79.6%, 34.5%)
CIE-LABlab(65.10, -12.39, 61.37)
CIE-LCHlch(65.10, 62.61, 101.42°)
OKLaboklab(69.49% -0.0411 0.1332)
OKLCHoklch(69.49% 0.139 107.2)
XYZxyz(29.1466, 34.1727, 6.5737)
Luminance0.3417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A222 #2227A7
analogous
#A75F22 #A7A222 #6AA722
triadic
#A7A222 #22A7A2 #A222A7
tetradic
#A7A222 #22A75F #2227A7 #A7226A
square
#A7A222 #22A75F #2227A7 #A7226A
split-complementary
#A7A222 #226AA7 #5F22A7
monochromatic
#413F0D #747118 #A7A222 #D5CF31 #DFDB64

Accessibility & contrast

On white

2.68
#A7A222 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#A7A222 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A222
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A222#FFFFFF#000000##000000
##A7A2221.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7a222;
/* rgb */ color: rgb(167, 162, 34);
/* oklch */ color: oklch(69.5% 0.139 107.2);
Tailwind
colors: {
  custom: {
    50: '#c5bd69',
    500: '#a7a222',
    950: '#000000',
  },
}
SCSS
$custom: #a7a222;
$custom-light: #c5bd69;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a222",
  "rgb": {
    "r": 167,
    "g": 162,
    "b": 34
  },
  "hsl": {
    "h": 57.744,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.69489,
    "c": 0.1394,
    "h": 107.2
  },
  "luminance": 0.34172
}

Semantic roles & 50–950 ramp

primary
#A7A222
secondary
#6064C5
accent
#45E93F
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A7A222

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

Preview Lab → · Contrast checker → · Palette generator →

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