#7E8F1A#7E8F1A

#7E8F1A is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.6% C 0.135 H 118.1°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7E8F1A
RGBrgb(126, 143, 26)
HSLhsl(69, 69%, 33%)
HSVhsv(69, 82%, 56%)
CMYKcmyk(11.9%, 0%, 81.8%, 43.9%)
CIE-LABlab(56.24, -21.03, 54.60)
CIE-LCHlch(56.24, 58.51, 111.07°)
OKLaboklab(61.56% -0.0635 0.1189)
OKLCHoklch(61.56% 0.135 118.1)
XYZxyz(18.6136, 24.1553, 4.6590)
Luminance0.2415 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8F1A #2B1A8F
analogous
#8F651A #7E8F1A #438F1A
triadic
#7E8F1A #1A7E8F #8F1A7E
tetradic
#7E8F1A #1A8F65 #2B1A8F #8F1A43
square
#7E8F1A #1A8F65 #2B1A8F #8F1A43
split-complementary
#7E8F1A #1A438F #651A8F
monochromatic
#232707 #505B11 #7E8F1A #ACC323 #C7DD46

Accessibility & contrast

On white

3.60
#7E8F1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#7E8F1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8F1A
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8F1A#FFFFFF#000000##000000
##7E8F1A1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#978726
Tritanopia (blue-blind)
#86877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7e8f1a;
/* rgb */ color: rgb(126, 143, 26);
/* oklch */ color: oklch(61.6% 0.135 118.1);
Tailwind
colors: {
  custom: {
    50: '#a7af63',
    500: '#7e8f1a',
    950: '#000000',
  },
}
SCSS
$custom: #7e8f1a;
$custom-light: #a7af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8f1a",
  "rgb": {
    "r": 126,
    "g": 143,
    "b": 26
  },
  "hsl": {
    "h": 68.718,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61561,
    "c": 0.13482,
    "h": 118.1
  },
  "luminance": 0.24155
}

Semantic roles & 50–950 ramp

primary
#7E8F1A
secondary
#5846BF
accent
#3CEC55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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