#7E8A3F#7E8A3F

#7E8A3F is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 60.7% C 0.101 H 117.0°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7E8A3F
RGBrgb(126, 138, 63)
HSLhsl(70, 37%, 39%)
HSVhsv(70, 54%, 54%)
CMYKcmyk(8.7%, 0%, 54.3%, 45.9%)
CIE-LABlab(55.04, -15.98, 38.18)
CIE-LCHlch(55.04, 41.39, 112.72°)
OKLaboklab(60.69% -0.0458 0.0898)
OKLCHoklch(60.69% 0.101 117)
XYZxyz(18.5901, 22.9716, 8.1563)
Luminance0.2297 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A3F #4B3F8A
analogous
#8A713F #7E8A3F #598A3F
triadic
#7E8A3F #3F7E8A #8A3F7E
tetradic
#7E8A3F #3F8A71 #4B3F8A #8A3F59
square
#7E8A3F #3F8A71 #4B3F8A #8A3F59
split-complementary
#7E8A3F #3F598A #713F8A
monochromatic
#313619 #58602C #7E8A3F #A3B155 #B9C57F

Accessibility & contrast

On white

3.75
#7E8A3F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#7E8A3F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A3F
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A3F#FFFFFF#000000##000000
##7E8A3F1.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928338
Deuteranopia (green-blind)
#918443
Tritanopia (blue-blind)
#858379
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8a3f;
/* rgb */ color: rgb(126, 138, 63);
/* oklch */ color: oklch(60.7% 0.101 117.0);
Tailwind
colors: {
  custom: {
    50: '#a5ac76',
    500: '#7e8a3f',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a3f;
$custom-light: #a5ac76;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a3f",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 63
  },
  "hsl": {
    "h": 69.6,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.6069,
    "c": 0.10079,
    "h": 117
  },
  "luminance": 0.22971
}

Semantic roles & 50–950 ramp

primary
#7E8A3F
secondary
#7F76AF
accent
#5BCD6D
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7E8A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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