#7F8B22#7F8B22

#7F8B22 is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 60.7% C 0.126 H 116.0°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7F8B22
RGBrgb(127, 139, 34)
HSLhsl(67, 61%, 34%)
HSVhsv(67, 76%, 55%)
CMYKcmyk(8.6%, 0%, 75.5%, 45.5%)
CIE-LABlab(55.17, -18.18, 51.05)
CIE-LCHlch(55.17, 54.19, 109.60°)
OKLaboklab(60.73% -0.055 0.1128)
OKLCHoklch(60.73% 0.126 116)
XYZxyz(18.2742, 23.0930, 5.0078)
Luminance0.2309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8B22 #2E228B
analogous
#8B6322 #7F8B22 #4B8B22
triadic
#7F8B22 #227F8B #8B227F
tetradic
#7F8B22 #228B63 #2E228B #8B224B
square
#7F8B22 #228B63 #2E228B #8B224B
split-complementary
#7F8B22 #224B8B #63228B
monochromatic
#25290A #525A16 #7F8B22 #ACBC2E #C6D553

Accessibility & contrast

On white

3.74
#7F8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#7F8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8B22
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8B22#FFFFFF#000000##000000
##7F8B221.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#95840C
Deuteranopia (green-blind)
#94852B
Tritanopia (blue-blind)
#878377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8b22;
/* rgb */ color: rgb(127, 139, 34);
/* oklch */ color: oklch(60.7% 0.126 116.0);
Tailwind
colors: {
  custom: {
    50: '#a7ac66',
    500: '#7f8b22',
    950: '#000000',
  },
}
SCSS
$custom: #7f8b22;
$custom-light: #a7ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8b22",
  "rgb": {
    "r": 127,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 66.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60729,
    "c": 0.1255,
    "h": 116
  },
  "luminance": 0.23093
}

Semantic roles & 50–950 ramp

primary
#7F8B22
secondary
#5C50B8
accent
#44E456
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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