#7F8A21#7F8A21

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

Color values

HEX#7F8A21
RGBrgb(127, 138, 33)
HSLhsl(66, 61%, 34%)
HSVhsv(66, 76%, 54%)
CMYKcmyk(8%, 0%, 76.1%, 45.9%)
CIE-LABlab(54.86, -17.70, 51.11)
CIE-LCHlch(54.86, 54.09, 109.10°)
OKLaboklab(60.48% -0.0538 0.1128)
OKLCHoklch(60.48% 0.125 115.5)
XYZxyz(18.1159, 22.7991, 4.8849)
Luminance0.2280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A21 #2C218A
analogous
#8A6021 #7F8A21 #4A8A21
triadic
#7F8A21 #217F8A #8A217F
tetradic
#7F8A21 #218A60 #2C218A #8A214A
square
#7F8A21 #218A60 #2C218A #8A214A
split-complementary
#7F8A21 #214A8A #60218A
monochromatic
#242709 #525915 #7F8A21 #ACBB2D #C7D550

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8A21#FFFFFF#000000##000000
##7F8A211.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)
#94830A
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#888276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a21;
/* rgb */ color: rgb(127, 138, 33);
/* oklch */ color: oklch(60.5% 0.125 115.5);
Tailwind
colors: {
  custom: {
    50: '#a7ac65',
    500: '#7f8a21',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a21;
$custom-light: #a7ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a21",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 66.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60484,
    "c": 0.12494,
    "h": 115.5
  },
  "luminance": 0.22799
}

Semantic roles & 50–950 ramp

primary
#7F8A21
secondary
#594EB9
accent
#43E554
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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