#A7A822#A7A822

#A7A822 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 70.8% C 0.145 H 110.0°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#A7A822
RGBrgb(167, 168, 34)
HSLhsl(60, 66%, 40%)
HSVhsv(60, 80%, 66%)
CMYKcmyk(0.6%, 0%, 79.8%, 34.1%)
CIE-LABlab(66.78, -15.50, 62.85)
CIE-LCHlch(66.78, 64.73, 103.85°)
OKLaboklab(70.83% -0.0498 0.1364)
OKLCHoklch(70.83% 0.145 110)
XYZxyz(30.2289, 36.3372, 6.9345)
Luminance0.3634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A822 #2322A8
analogous
#A86622 #A7A822 #64A822
triadic
#A7A822 #22A7A8 #A822A7
tetradic
#A7A822 #22A866 #2322A8 #A82264
square
#A7A822 #22A866 #2322A8 #A82264
split-complementary
#A7A822 #2264A8 #6622A8
monochromatic
#42420D #747518 #A7A822 #D4D532 #DFE065

Accessibility & contrast

On white

2.54
#A7A822 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#A7A822 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A822
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A822#FFFFFF#000000##000000
##A7A8221.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#B7A42E
Tritanopia (blue-blind)
#B39D90
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a7a822;
/* rgb */ color: rgb(167, 168, 34);
/* oklch */ color: oklch(70.8% 0.145 110.0);
Tailwind
colors: {
  custom: {
    50: '#c5c16a',
    500: '#a7a822',
    950: '#000000',
  },
}
SCSS
$custom: #a7a822;
$custom-light: #c5c16a;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a822",
  "rgb": {
    "r": 167,
    "g": 168,
    "b": 34
  },
  "hsl": {
    "h": 60.448,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.70828,
    "c": 0.14518,
    "h": 110
  },
  "luminance": 0.36336
}

Semantic roles & 50–950 ramp

primary
#A7A822
secondary
#6161C5
accent
#3FE940
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A7A822

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

Preview Lab → · Contrast checker → · Palette generator →

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