#7E8D2F#7E8D2F

#7E8D2F is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.119 H 117.8°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7E8D2F
RGBrgb(126, 141, 47)
HSLhsl(70, 50%, 37%)
HSVhsv(70, 67%, 55%)
CMYKcmyk(10.6%, 0%, 66.7%, 44.7%)
CIE-LABlab(55.78, -18.87, 46.48)
CIE-LCHlch(55.78, 50.17, 112.10°)
OKLaboklab(61.23% -0.0556 0.1054)
OKLCHoklch(61.23% 0.119 117.8)
XYZxyz(18.6425, 23.6908, 6.2795)
Luminance0.2369 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D2F #3E2F8D
analogous
#8D6D2F #7E8D2F #4F8D2F
triadic
#7E8D2F #2F7E8D #8D2F7E
tetradic
#7E8D2F #2F8D6D #3E2F8D #8D2F4F
square
#7E8D2F #2F8D6D #3E2F8D #8D2F4F
split-complementary
#7E8D2F #2F4F8D #6D2F8D
monochromatic
#2C3110 #555F20 #7E8D2F #A7BB3E #BDCD69

Accessibility & contrast

On white

3.66
#7E8D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#7E8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D2F
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D2F#FFFFFF#000000##000000
##7E8D2F1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968522
Deuteranopia (green-blind)
#958636
Tritanopia (blue-blind)
#85857A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8d2f;
/* rgb */ color: rgb(126, 141, 47);
/* oklch */ color: oklch(61.2% 0.119 117.8);
Tailwind
colors: {
  custom: {
    50: '#a6ae6d',
    500: '#7e8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d2f;
$custom-light: #a6ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d2f",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 69.574,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61228,
    "c": 0.11919,
    "h": 117.8
  },
  "luminance": 0.23691
}

Semantic roles & 50–950 ramp

primary
#7E8D2F
secondary
#7064B4
accent
#4EDA65
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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