#7A8A20#7A8A20

#7A8A20 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.1% C 0.127 H 118.0°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7A8A20
RGBrgb(122, 138, 32)
HSLhsl(69, 62%, 33%)
HSVhsv(69, 77%, 54%)
CMYKcmyk(11.6%, 0%, 76.8%, 45.9%)
CIE-LABlab(54.47, -19.97, 50.95)
CIE-LCHlch(54.47, 54.73, 111.40°)
OKLaboklab(60.07% -0.0599 0.1124)
OKLCHoklch(60.07% 0.127 118)
XYZxyz(17.3756, 22.4190, 4.7782)
Luminance0.2242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8A20 #30208A
analogous
#8A6520 #7A8A20 #458A20
triadic
#7A8A20 #207A8A #8A207A
tetradic
#7A8A20 #208A65 #30208A #8A2045
square
#7A8A20 #208A65 #30208A #8A2045
split-complementary
#7A8A20 #20458A #65208A
monochromatic
#222709 #4E5814 #7A8A20 #A6BC2C #C2D64E

Accessibility & contrast

On white

3.83
#7A8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#7A8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8A20
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8A20#FFFFFF#000000##000000
##7A8A201.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#948207
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#828276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7a8a20;
/* rgb */ color: rgb(122, 138, 32);
/* oklch */ color: oklch(60.1% 0.127 118.0);
Tailwind
colors: {
  custom: {
    50: '#a4ac64',
    500: '#7a8a20',
    950: '#000000',
  },
}
SCSS
$custom: #7a8a20;
$custom-light: #a4ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8a20",
  "rgb": {
    "r": 122,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 69.057,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60066,
    "c": 0.12736,
    "h": 118
  },
  "luminance": 0.22419
}

Semantic roles & 50–950 ramp

primary
#7A8A20
secondary
#5D4DB9
accent
#42E55B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7A8A20

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

Preview Lab → · Contrast checker → · Palette generator →

#7A8A20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva