#7E8A1F#7E8A1F

#7E8A1F is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.126 H 116.0°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7E8A1F
RGBrgb(126, 138, 31)
HSLhsl(67, 63%, 33%)
HSVhsv(67, 78%, 54%)
CMYKcmyk(8.7%, 0%, 77.5%, 45.9%)
CIE-LABlab(54.77, -18.25, 51.69)
CIE-LCHlch(54.77, 54.82, 109.44°)
OKLaboklab(60.39% -0.0554 0.1137)
OKLCHoklch(60.39% 0.126 116)
XYZxyz(17.9405, 22.7118, 4.7348)
Luminance0.2271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A1F #2B1F8A
analogous
#8A601F #7E8A1F #488A1F
triadic
#7E8A1F #1F7E8A #8A1F7E
tetradic
#7E8A1F #1F8A60 #2B1F8A #8A1F48
square
#7E8A1F #1F8A60 #2B1F8A #8A1F48
split-complementary
#7E8A1F #1F488A #601F8A
monochromatic
#232609 #505814 #7E8A1F #ACBC2A #C7D74C

Accessibility & contrast

On white

3.79
#7E8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7E8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A1F
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A1F#FFFFFF#000000##000000
##7E8A1F1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948205
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#868276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a1f;
/* rgb */ color: rgb(126, 138, 31);
/* oklch */ color: oklch(60.4% 0.126 116.0);
Tailwind
colors: {
  custom: {
    50: '#a7ac64',
    500: '#7e8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a1f;
$custom-light: #a7ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a1f",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 66.729,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60388,
    "c": 0.12645,
    "h": 116
  },
  "luminance": 0.22712
}

Semantic roles & 50–950 ramp

primary
#7E8A1F
secondary
#584BBA
accent
#41E654
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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