#7F8A2E#7F8A2E

#7F8A2E is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.6% C 0.116 H 115.8°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7F8A2E
RGBrgb(127, 138, 46)
HSLhsl(67, 50%, 36%)
HSVhsv(67, 67%, 54%)
CMYKcmyk(8%, 0%, 66.7%, 45.9%)
CIE-LABlab(54.96, -16.94, 46.08)
CIE-LCHlch(54.96, 49.09, 110.19°)
OKLaboklab(60.59% -0.0504 0.1044)
OKLCHoklch(60.59% 0.116 115.8)
XYZxyz(18.3344, 22.8865, 6.0359)
Luminance0.2289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A2E #392E8A
analogous
#8A672E #7F8A2E #518A2E
triadic
#7F8A2E #2E7F8A #8A2E7F
tetradic
#7F8A2E #2E8A67 #392E8A #8A2E51
square
#7F8A2E #2E8A67 #392E8A #8A2E51
split-complementary
#7F8A2E #2E518A #672E8A
monochromatic
#2B2E0F #555C1F #7F8A2E #A9B83D #C0CC66

Accessibility & contrast

On white

3.77
#7F8A2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#7F8A2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A2E
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A2E#FFFFFF#000000##000000
##7F8A2E1.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#948322
Deuteranopia (green-blind)
#938434
Tritanopia (blue-blind)
#878277
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8a2e;
/* rgb */ color: rgb(127, 138, 46);
/* oklch */ color: oklch(60.6% 0.116 115.8);
Tailwind
colors: {
  custom: {
    50: '#a7ac6c',
    500: '#7f8a2e',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a2e;
$custom-light: #a7ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a2e",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 46
  },
  "hsl": {
    "h": 67.174,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60585,
    "c": 0.11592,
    "h": 115.8
  },
  "luminance": 0.22886
}

Semantic roles & 50–950 ramp

primary
#7F8A2E
secondary
#6B61B3
accent
#4EDA5F
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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