#7E8A2F#7E8A2F

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

Color values

HEX#7E8A2F
RGBrgb(126, 138, 47)
HSLhsl(68, 49%, 36%)
HSVhsv(68, 66%, 54%)
CMYKcmyk(8.7%, 0%, 65.9%, 45.9%)
CIE-LABlab(54.88, -17.31, 45.54)
CIE-LCHlch(54.88, 48.72, 110.81°)
OKLaboklab(60.51% -0.0513 0.1034)
OKLCHoklch(60.51% 0.115 116.4)
XYZxyz(18.2061, 22.8180, 6.1340)
Luminance0.2282 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A2F #3B2F8A
analogous
#8A692F #7E8A2F #518A2F
triadic
#7E8A2F #2F7E8A #8A2F7E
tetradic
#7E8A2F #2F8A69 #3B2F8A #8A2F51
square
#7E8A2F #2F8A69 #3B2F8A #8A2F51
split-complementary
#7E8A2F #2F518A #692F8A
monochromatic
#2B2F10 #545C1F #7E8A2F #A8B83F #BECC68

Accessibility & contrast

On white

3.77
#7E8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A2F#FFFFFF#000000##000000
##7E8A2F1.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8a2f;
/* rgb */ color: rgb(126, 138, 47);
/* oklch */ color: oklch(60.5% 0.115 116.4);
Tailwind
colors: {
  custom: {
    50: '#a6ac6c',
    500: '#7e8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a2f;
$custom-light: #a6ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a2f",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 67.912,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60512,
    "c": 0.11545,
    "h": 116.4
  },
  "luminance": 0.22818
}

Semantic roles & 50–950 ramp

primary
#7E8A2F
secondary
#6D62B3
accent
#4FD961
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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