#7F8A20#7F8A20

#7F8A20 is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.126 H 115.5°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7F8A20
RGBrgb(127, 138, 32)
HSLhsl(66, 62%, 33%)
HSVhsv(66, 77%, 54%)
CMYKcmyk(8%, 0%, 76.8%, 45.9%)
CIE-LABlab(54.86, -17.75, 51.46)
CIE-LCHlch(54.86, 54.44, 109.03°)
OKLaboklab(60.48% -0.054 0.1133)
OKLCHoklch(60.48% 0.126 115.5)
XYZxyz(18.1021, 22.7936, 4.8122)
Luminance0.2279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A20 #2B208A
analogous
#8A6020 #7F8A20 #4A8A20
triadic
#7F8A20 #207F8A #8A207F
tetradic
#7F8A20 #208A60 #2B208A #8A204A
square
#7F8A20 #208A60 #2B208A #8A204A
split-complementary
#7F8A20 #204A8A #60208A
monochromatic
#242709 #515814 #7F8A20 #ADBC2C #C8D64E

Accessibility & contrast

On white

3.78
#7F8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#7F8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A20
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A20#FFFFFF#000000##000000
##7F8A201.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948307
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#888276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a20;
/* rgb */ color: rgb(127, 138, 32);
/* oklch */ color: oklch(60.5% 0.126 115.5);
Tailwind
colors: {
  custom: {
    50: '#a7ac64',
    500: '#7f8a20',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a20;
$custom-light: #a7ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a20",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 66.226,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60478,
    "c": 0.12553,
    "h": 115.5
  },
  "luminance": 0.22793
}

Semantic roles & 50–950 ramp

primary
#7F8A20
secondary
#584DB9
accent
#42E553
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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