#7E8A2D#7E8A2D

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

Color values

HEX#7E8A2D
RGBrgb(126, 138, 45)
HSLhsl(68, 51%, 36%)
HSVhsv(68, 67%, 54%)
CMYKcmyk(8.7%, 0%, 67.4%, 45.9%)
CIE-LABlab(54.87, -17.45, 46.39)
CIE-LCHlch(54.87, 49.56, 110.61°)
OKLaboklab(60.49% -0.0519 0.1049)
OKLCHoklch(60.49% 0.117 116.3)
XYZxyz(18.1667, 22.8023, 5.9264)
Luminance0.2280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A2D #392D8A
analogous
#8A672D #7E8A2D #4F8A2D
triadic
#7E8A2D #2D7E8A #8A2D7E
tetradic
#7E8A2D #2D8A67 #392D8A #8A2D4F
square
#7E8A2D #2D8A67 #392D8A #8A2D4F
split-complementary
#7E8A2D #2D4F8A #672D8A
monochromatic
#2A2E0F #545C1E #7E8A2D #A8B83C #BFCD65

Accessibility & contrast

On white

3.78
#7E8A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A2D#FFFFFF#000000##000000
##7E8A2D1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8a2d;
/* rgb */ color: rgb(126, 138, 45);
/* oklch */ color: oklch(60.5% 0.117 116.3);
Tailwind
colors: {
  custom: {
    50: '#a6ac6b',
    500: '#7e8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a2d;
$custom-light: #a6ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a2d",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 67.742,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60493,
    "c": 0.11703,
    "h": 116.3
  },
  "luminance": 0.22802
}

Semantic roles & 50–950 ramp

primary
#7E8A2D
secondary
#6A60B3
accent
#4DDA60
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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