#A7B021#A7B021

#A7B021 is a light, vivid yellow. Relative luminance 0.394; OKLCH L 72.6% C 0.154 H 113.5°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#A7B021
RGBrgb(167, 176, 33)
HSLhsl(64, 68%, 41%)
HSVhsv(64, 81%, 69%)
CMYKcmyk(5.1%, 0%, 81.3%, 31%)
CIE-LABlab(69.02, -19.60, 65.09)
CIE-LCHlch(69.02, 67.98, 106.76°)
OKLaboklab(72.63% -0.0612 0.141)
OKLCHoklch(72.63% 0.154 113.5)
XYZxyz(31.7372, 39.3767, 7.3672)
Luminance0.3938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B021 #2A21B0
analogous
#B07121 #A7B021 #5FB021
triadic
#A7B021 #21A7B0 #B021A7
tetradic
#A7B021 #21B071 #2A21B0 #B0215F
square
#A7B021 #21B071 #2A21B0 #B0215F
split-complementary
#A7B021 #215FB0 #7121B0
monochromatic
#45490E #767C17 #A7B021 #CFD935 #DBE369

Accessibility & contrast

On white

2.37
#A7B021 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#A7B021 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B021
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B021#FFFFFF#000000##000000
##A7B0211.002.378.888.88
#FFFFFF2.371.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BEAA2F
Tritanopia (blue-blind)
#B3A596
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a7b021;
/* rgb */ color: rgb(167, 176, 33);
/* oklch */ color: oklch(72.6% 0.154 113.5);
Tailwind
colors: {
  custom: {
    50: '#c5c76b',
    500: '#a7b021',
    950: '#000000',
  },
}
SCSS
$custom: #a7b021;
$custom-light: #c5c76b;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b021",
  "rgb": {
    "r": 167,
    "g": 176,
    "b": 33
  },
  "hsl": {
    "h": 63.776,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72626,
    "c": 0.15372,
    "h": 113.5
  },
  "luminance": 0.39376
}

Semantic roles & 50–950 ramp

primary
#A7B021
secondary
#6B64C8
accent
#3DEB48
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A7B021

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

Preview Lab → · Contrast checker → · Palette generator →

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