#7E8945#7E8945

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

Color values

HEX#7E8945
RGBrgb(126, 137, 69)
HSLhsl(70, 33%, 40%)
HSVhsv(70, 50%, 54%)
CMYKcmyk(8%, 0%, 49.6%, 46.3%)
CIE-LABlab(54.82, -14.85, 34.85)
CIE-LCHlch(54.82, 37.89, 113.08°)
OKLaboklab(60.54% -0.042 0.0831)
OKLCHoklch(60.54% 0.093 116.8)
XYZxyz(18.6242, 22.7568, 9.0404)
Luminance0.2276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8945 #504589
analogous
#897245 #7E8945 #5C8945
triadic
#7E8945 #457E89 #89457E
tetradic
#7E8945 #458972 #504589 #89455C
square
#7E8945 #458972 #504589 #89455C
split-complementary
#7E8945 #455C89 #724589
monochromatic
#33381C #596031 #7E8945 #A1AE5E #B8C286

Accessibility & contrast

On white

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

On black

5.55
#7E8945 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8945
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8945#FFFFFF#000000##000000
##7E89451.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91833F
Deuteranopia (green-blind)
#908449
Tritanopia (blue-blind)
#848379
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8945;
/* rgb */ color: rgb(126, 137, 69);
/* oklch */ color: oklch(60.5% 0.093 116.8);
Tailwind
colors: {
  custom: {
    50: '#a5ab7a',
    500: '#7e8945',
    950: '#000000',
  },
}
SCSS
$custom: #7e8945;
$custom-light: #a5ab7a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8945",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 69
  },
  "hsl": {
    "h": 69.706,
    "s": 33.01,
    "l": 40.392
  },
  "oklch": {
    "l": 0.60536,
    "c": 0.09309,
    "h": 116.8
  },
  "luminance": 0.22757
}

Semantic roles & 50–950 ramp

primary
#7E8945
secondary
#847CAD
accent
#5FC970
background
#FAFAF7
surface
#F4F4EE
border
#CECEC9
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7E8945

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

Preview Lab → · Contrast checker → · Palette generator →

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