#7E8D2E#7E8D2E

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

Color values

HEX#7E8D2E
RGBrgb(126, 141, 46)
HSLhsl(69, 51%, 37%)
HSVhsv(69, 67%, 55%)
CMYKcmyk(10.6%, 0%, 67.4%, 44.7%)
CIE-LABlab(55.77, -18.94, 46.90)
CIE-LCHlch(55.77, 50.58, 111.99°)
OKLaboklab(61.22% -0.0559 0.1061)
OKLCHoklch(61.22% 0.12 117.8)
XYZxyz(18.6226, 23.6828, 6.1744)
Luminance0.2368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D2E #3D2E8D
analogous
#8D6D2E #7E8D2E #4F8D2E
triadic
#7E8D2E #2E7E8D #8D2E7E
tetradic
#7E8D2E #2E8D6D #3D2E8D #8D2E4F
square
#7E8D2E #2E8D6D #3D2E8D #8D2E4F
split-complementary
#7E8D2E #2E4F8D #6D2E8D
monochromatic
#2C3110 #555F1F #7E8D2E #A7BB3D #BECE68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8D2E#FFFFFF#000000##000000
##7E8D2E1.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)
#968521
Deuteranopia (green-blind)
#958635
Tritanopia (blue-blind)
#86857A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8d2e;
/* rgb */ color: rgb(126, 141, 46);
/* oklch */ color: oklch(61.2% 0.120 117.8);
Tailwind
colors: {
  custom: {
    50: '#a6ae6c',
    500: '#7e8d2e',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d2e;
$custom-light: #a6ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d2e",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 69.474,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61219,
    "c": 0.11997,
    "h": 117.8
  },
  "luminance": 0.23683
}

Semantic roles & 50–950 ramp

primary
#7E8D2E
secondary
#6F62B5
accent
#4EDA64
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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