#7F8D2E#7F8D2E

#7F8D2E is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.3% C 0.120 H 117.3°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#7F8D2E
RGBrgb(127, 141, 46)
HSLhsl(69, 51%, 37%)
HSVhsv(69, 67%, 55%)
CMYKcmyk(9.9%, 0%, 67.4%, 44.7%)
CIE-LABlab(55.85, -18.51, 47.01)
CIE-LCHlch(55.85, 50.52, 111.49°)
OKLaboklab(61.3% -0.0548 0.1063)
OKLCHoklch(61.3% 0.12 117.3)
XYZxyz(18.7708, 23.7592, 6.1814)
Luminance0.2376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D2E #3C2E8D
analogous
#8D6C2E #7F8D2E #508D2E
triadic
#7F8D2E #2E7F8D #8D2E7F
tetradic
#7F8D2E #2E8D6C #3C2E8D #8D2E50
square
#7F8D2E #2E8D6C #3C2E8D #8D2E50
split-complementary
#7F8D2E #2E508D #6C2E8D
monochromatic
#2C3110 #555F1F #7F8D2E #A9BB3D #BFCE68

Accessibility & contrast

On white

3.65
#7F8D2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#7F8D2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D2E
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D2E#FFFFFF#000000##000000
##7F8D2E1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968521
Deuteranopia (green-blind)
#958635
Tritanopia (blue-blind)
#87857A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8d2e;
/* rgb */ color: rgb(127, 141, 46);
/* oklch */ color: oklch(61.3% 0.120 117.3);
Tailwind
colors: {
  custom: {
    50: '#a7ae6c',
    500: '#7f8d2e',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d2e;
$custom-light: #a7ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d2e",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 68.842,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.613,
    "c": 0.11961,
    "h": 117.3
  },
  "luminance": 0.23759
}

Semantic roles & 50–950 ramp

primary
#7F8D2E
secondary
#6E62B5
accent
#4EDA62
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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