#7E8A3E#7E8A3E

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

Color values

HEX#7E8A3E
RGBrgb(126, 138, 62)
HSLhsl(69, 38%, 39%)
HSVhsv(69, 55%, 54%)
CMYKcmyk(8.7%, 0%, 55.1%, 45.9%)
CIE-LABlab(55.03, -16.08, 38.66)
CIE-LCHlch(55.03, 41.88, 112.58°)
OKLaboklab(60.68% -0.0462 0.0907)
OKLCHoklch(60.68% 0.102 117)
XYZxyz(18.5624, 22.9606, 8.0105)
Luminance0.2296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A3E #4A3E8A
analogous
#8A703E #7E8A3E #588A3E
triadic
#7E8A3E #3E7E8A #8A3E7E
tetradic
#7E8A3E #3E8A70 #4A3E8A #8A3E58
square
#7E8A3E #3E8A70 #4A3E8A #8A3E58
split-complementary
#7E8A3E #3E588A #703E8A
monochromatic
#313618 #57602B #7E8A3E #A3B253 #BAC57E

Accessibility & contrast

On white

3.76
#7E8A3E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A3E#FFFFFF#000000##000000
##7E8A3E1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8a3e;
/* rgb */ color: rgb(126, 138, 62);
/* oklch */ color: oklch(60.7% 0.102 117.0);
Tailwind
colors: {
  custom: {
    50: '#a5ac76',
    500: '#7e8a3e',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a3e;
$custom-light: #a5ac76;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a3e",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 62
  },
  "hsl": {
    "h": 69.474,
    "s": 38,
    "l": 39.216
  },
  "oklch": {
    "l": 0.60677,
    "c": 0.1018,
    "h": 117
  },
  "luminance": 0.2296
}

Semantic roles & 50–950 ramp

primary
#7E8A3E
secondary
#7E75AF
accent
#5ACE6C
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #7E8A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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