#7E8D38#7E8D38

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

Color values

HEX#7E8D38
RGBrgb(126, 141, 56)
HSLhsl(71, 43%, 39%)
HSVhsv(71, 60%, 55%)
CMYKcmyk(10.6%, 0%, 60.3%, 44.7%)
CIE-LABlab(55.86, -18.18, 42.51)
CIE-LCHlch(55.86, 46.24, 113.16°)
OKLaboklab(61.32% -0.0528 0.0983)
OKLCHoklch(61.32% 0.112 118.2)
XYZxyz(18.8432, 23.7710, 7.3362)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D38 #47388D
analogous
#8D7138 #7E8D38 #538D38
triadic
#7E8D38 #387E8D #8D387E
tetradic
#7E8D38 #388D71 #47388D #8D3853
square
#7E8D38 #388D71 #47388D #8D3853
split-complementary
#7E8D38 #38538D #71388D
monochromatic
#303515 #576127 #7E8D38 #A4B74B #BAC977

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8D38#FFFFFF#000000##000000
##7E8D381.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)
#96862F
Deuteranopia (green-blind)
#94863D
Tritanopia (blue-blind)
#85867B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8d38;
/* rgb */ color: rgb(126, 141, 56);
/* oklch */ color: oklch(61.3% 0.112 118.2);
Tailwind
colors: {
  custom: {
    50: '#a5ae72',
    500: '#7e8d38',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d38;
$custom-light: #a5ae72;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d38",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 56
  },
  "hsl": {
    "h": 70.588,
    "s": 43.147,
    "l": 38.627
  },
  "oklch": {
    "l": 0.61319,
    "c": 0.11153,
    "h": 118.2
  },
  "luminance": 0.23771
}

Semantic roles & 50–950 ramp

primary
#7E8D38
secondary
#7B6FB2
accent
#55D36B
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#101008
muted
#7F7F7B

Preview Lab

Preview with #7E8D38

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

Preview Lab → · Contrast checker → · Palette generator →

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