#7E8A41#7E8A41

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

Color values

HEX#7E8A41
RGBrgb(126, 138, 65)
HSLhsl(70, 36%, 40%)
HSVhsv(70, 53%, 54%)
CMYKcmyk(8.7%, 0%, 52.9%, 45.9%)
CIE-LABlab(55.07, -15.79, 37.20)
CIE-LCHlch(55.07, 40.41, 113.00°)
OKLaboklab(60.72% -0.0451 0.0878)
OKLCHoklch(60.72% 0.099 117.2)
XYZxyz(18.6470, 22.9944, 8.4560)
Luminance0.2299 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A41 #4D418A
analogous
#8A7241 #7E8A41 #5A8A41
triadic
#7E8A41 #417E8A #8A417E
tetradic
#7E8A41 #418A72 #4D418A #8A415A
square
#7E8A41 #418A72 #4D418A #8A415A
split-complementary
#7E8A41 #415A8A #72418A
monochromatic
#32371A #58602D #7E8A41 #A2B058 #B9C482

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A41#FFFFFF#000000##000000
##7E8A411.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)
#92843A
Deuteranopia (green-blind)
#918445
Tritanopia (blue-blind)
#858379
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8a41;
/* rgb */ color: rgb(126, 138, 65);
/* oklch */ color: oklch(60.7% 0.099 117.2);
Tailwind
colors: {
  custom: {
    50: '#a5ac78',
    500: '#7e8a41',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a41;
$custom-light: #a5ac78;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a41",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 65
  },
  "hsl": {
    "h": 69.863,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.60716,
    "c": 0.09873,
    "h": 117.2
  },
  "luminance": 0.22994
}

Semantic roles & 50–950 ramp

primary
#7E8A41
secondary
#8178AE
accent
#5CCC6E
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7E8A41

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

Preview Lab → · Contrast checker → · Palette generator →

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