#7E8A40#7E8A40

#7E8A40 is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 60.7% C 0.100 H 117.1°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7E8A40
RGBrgb(126, 138, 64)
HSLhsl(70, 37%, 40%)
HSVhsv(70, 54%, 54%)
CMYKcmyk(8.7%, 0%, 53.6%, 45.9%)
CIE-LABlab(55.05, -15.89, 37.69)
CIE-LCHlch(55.05, 40.90, 112.86°)
OKLaboklab(60.7% -0.0455 0.0888)
OKLCHoklch(60.7% 0.1 117.1)
XYZxyz(18.6183, 22.9829, 8.3048)
Luminance0.2298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A40 #4C408A
analogous
#8A7140 #7E8A40 #598A40
triadic
#7E8A40 #407E8A #8A407E
tetradic
#7E8A40 #408A71 #4C408A #8A4059
square
#7E8A40 #408A71 #4C408A #8A4059
split-complementary
#7E8A40 #40598A #71408A
monochromatic
#323619 #58602D #7E8A40 #A2B156 #B9C480

Accessibility & contrast

On white

3.75
#7E8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#7E8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A40
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A40#FFFFFF#000000##000000
##7E8A401.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928339
Deuteranopia (green-blind)
#918444
Tritanopia (blue-blind)
#858379
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8a40;
/* rgb */ color: rgb(126, 138, 64);
/* oklch */ color: oklch(60.7% 0.100 117.1);
Tailwind
colors: {
  custom: {
    50: '#a5ac77',
    500: '#7e8a40',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a40;
$custom-light: #a5ac77;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a40",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 69.73,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.60703,
    "c": 0.09977,
    "h": 117.1
  },
  "luminance": 0.22983
}

Semantic roles & 50–950 ramp

primary
#7E8A40
secondary
#8077AF
accent
#5BCD6E
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7E8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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