#7F8A22#7F8A22

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

Color values

HEX#7F8A22
RGBrgb(127, 138, 34)
HSLhsl(66, 60%, 34%)
HSVhsv(66, 75%, 54%)
CMYKcmyk(8%, 0%, 75.4%, 45.9%)
CIE-LABlab(54.87, -17.66, 50.76)
CIE-LCHlch(54.87, 53.75, 109.18°)
OKLaboklab(60.49% -0.0536 0.1122)
OKLCHoklch(60.49% 0.124 115.5)
XYZxyz(18.1301, 22.8048, 4.9597)
Luminance0.2280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A22 #2D228A
analogous
#8A6122 #7F8A22 #4B8A22
triadic
#7F8A22 #227F8A #8A227F
tetradic
#7F8A22 #228A61 #2D228A #8A224B
square
#7F8A22 #228A61 #2D228A #8A224B
split-complementary
#7F8A22 #224B8A #61228A
monochromatic
#25280A #525916 #7F8A22 #ACBB2E #C7D452

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8A22#FFFFFF#000000##000000
##7F8A221.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)
#94830C
Deuteranopia (green-blind)
#93842B
Tritanopia (blue-blind)
#878276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a22;
/* rgb */ color: rgb(127, 138, 34);
/* oklch */ color: oklch(60.5% 0.124 115.5);
Tailwind
colors: {
  custom: {
    50: '#a7ac65',
    500: '#7f8a22',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a22;
$custom-light: #a7ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a22",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 66.346,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60491,
    "c": 0.12433,
    "h": 115.5
  },
  "luminance": 0.22804
}

Semantic roles & 50–950 ramp

primary
#7F8A22
secondary
#5B50B8
accent
#44E455
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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