#7F8922#7F8922

#7F8922 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.3% C 0.123 H 115.0°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7F8922
RGBrgb(127, 137, 34)
HSLhsl(66, 60%, 34%)
HSVhsv(66, 75%, 54%)
CMYKcmyk(7.3%, 0%, 75.2%, 46.3%)
CIE-LABlab(54.57, -17.13, 50.48)
CIE-LCHlch(54.57, 53.31, 108.75°)
OKLaboklab(60.25% -0.0521 0.1116)
OKLCHoklch(60.25% 0.123 115)
XYZxyz(17.9873, 22.5192, 4.9121)
Luminance0.2252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8922 #2C2289
analogous
#895F22 #7F8922 #4B8922
triadic
#7F8922 #227F89 #89227F
tetradic
#7F8922 #22895F #2C2289 #89224B
square
#7F8922 #22895F #2C2289 #89224B
split-complementary
#7F8922 #224B89 #5F2289
monochromatic
#24270A #525816 #7F8922 #ACBA2E #C7D451

Accessibility & contrast

On white

3.82
#7F8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#7F8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8922
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8922#FFFFFF#000000##000000
##7F89221.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820D
Deuteranopia (green-blind)
#93832B
Tritanopia (blue-blind)
#888175
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8922;
/* rgb */ color: rgb(127, 137, 34);
/* oklch */ color: oklch(60.3% 0.123 115.0);
Tailwind
colors: {
  custom: {
    50: '#a7ab65',
    500: '#7f8922',
    950: '#000000',
  },
}
SCSS
$custom: #7f8922;
$custom-light: #a7ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8922",
  "rgb": {
    "r": 127,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 65.825,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60252,
    "c": 0.12318,
    "h": 115
  },
  "luminance": 0.22519
}

Semantic roles & 50–950 ramp

primary
#7F8922
secondary
#594FB8
accent
#44E354
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8922

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

Preview Lab → · Contrast checker → · Palette generator →

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