#7E8A1E#7E8A1E

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

Color values

HEX#7E8A1E
RGBrgb(126, 138, 30)
HSLhsl(67, 64%, 33%)
HSVhsv(67, 78%, 54%)
CMYKcmyk(8.7%, 0%, 78.3%, 45.9%)
CIE-LABlab(54.77, -18.29, 52.02)
CIE-LCHlch(54.77, 55.15, 109.37°)
OKLaboklab(60.38% -0.0557 0.1142)
OKLCHoklch(60.38% 0.127 116)
XYZxyz(17.9275, 22.7066, 4.6664)
Luminance0.2271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A1E #2A1E8A
analogous
#8A601E #7E8A1E #488A1E
triadic
#7E8A1E #1E7E8A #8A1E7E
tetradic
#7E8A1E #1E8A60 #2A1E8A #8A1E48
square
#7E8A1E #1E8A60 #2A1E8A #8A1E48
split-complementary
#7E8A1E #1E488A #601E8A
monochromatic
#222508 #505813 #7E8A1E #ACBC29 #C8D84B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A1E#FFFFFF#000000##000000
##7E8A1E1.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)
#948202
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#868276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a1e;
/* rgb */ color: rgb(126, 138, 30);
/* oklch */ color: oklch(60.4% 0.127 116.0);
Tailwind
colors: {
  custom: {
    50: '#a7ac64',
    500: '#7e8a1e',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a1e;
$custom-light: #a7ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a1e",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 66.667,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60382,
    "c": 0.12701,
    "h": 116
  },
  "luminance": 0.22706
}

Semantic roles & 50–950 ramp

primary
#7E8A1E
secondary
#564ABA
accent
#41E753
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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