#7E8A2E#7E8A2E

#7E8A2E is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.116 H 116.3°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7E8A2E
RGBrgb(126, 138, 46)
HSLhsl(68, 50%, 36%)
HSVhsv(68, 67%, 54%)
CMYKcmyk(8.7%, 0%, 66.7%, 45.9%)
CIE-LABlab(54.88, -17.38, 45.97)
CIE-LCHlch(54.88, 49.15, 110.71°)
OKLaboklab(60.5% -0.0516 0.1042)
OKLCHoklch(60.5% 0.116 116.3)
XYZxyz(18.1862, 22.8101, 6.0290)
Luminance0.2281 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A2E #3A2E8A
analogous
#8A682E #7E8A2E #508A2E
triadic
#7E8A2E #2E7E8A #8A2E7E
tetradic
#7E8A2E #2E8A68 #3A2E8A #8A2E50
square
#7E8A2E #2E8A68 #3A2E8A #8A2E50
split-complementary
#7E8A2E #2E508A #682E8A
monochromatic
#2A2E0F #545C1F #7E8A2E #A8B83D #BFCC66

Accessibility & contrast

On white

3.78
#7E8A2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#7E8A2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A2E
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A2E#FFFFFF#000000##000000
##7E8A2E1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938322
Deuteranopia (green-blind)
#928434
Tritanopia (blue-blind)
#868277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a2e;
/* rgb */ color: rgb(126, 138, 46);
/* oklch */ color: oklch(60.5% 0.116 116.3);
Tailwind
colors: {
  custom: {
    50: '#a6ac6c',
    500: '#7e8a2e',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a2e;
$custom-light: #a6ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a2e",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 46
  },
  "hsl": {
    "h": 67.826,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60502,
    "c": 0.11625,
    "h": 116.3
  },
  "luminance": 0.2281
}

Semantic roles & 50–950 ramp

primary
#7E8A2E
secondary
#6C61B3
accent
#4EDA60
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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