#7E8A32#7E8A32

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

Color values

HEX#7E8A32
RGBrgb(126, 138, 50)
HSLhsl(68, 47%, 37%)
HSVhsv(68, 64%, 54%)
CMYKcmyk(8.7%, 0%, 63.8%, 45.9%)
CIE-LABlab(54.91, -17.09, 44.24)
CIE-LCHlch(54.91, 47.43, 111.13°)
OKLaboklab(60.54% -0.0503 0.1011)
OKLCHoklch(60.54% 0.113 116.5)
XYZxyz(18.2688, 22.8431, 6.4638)
Luminance0.2284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A32 #3E328A
analogous
#8A6A32 #7E8A32 #528A32
triadic
#7E8A32 #327E8A #8A327E
tetradic
#7E8A32 #328A6A #3E328A #8A3252
square
#7E8A32 #328A6A #3E328A #8A3252
split-complementary
#7E8A32 #32528A #6A328A
monochromatic
#2C3011 #555D22 #7E8A32 #A7B742 #BDCA6C

Accessibility & contrast

On white

3.77
#7E8A32 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#7E8A32 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A32
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A32#FFFFFF#000000##000000
##7E8A321.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938327
Deuteranopia (green-blind)
#928438
Tritanopia (blue-blind)
#868278
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a32;
/* rgb */ color: rgb(126, 138, 50);
/* oklch */ color: oklch(60.5% 0.113 116.5);
Tailwind
colors: {
  custom: {
    50: '#a6ac6e',
    500: '#7e8a32',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a32;
$custom-light: #a6ac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a32",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 50
  },
  "hsl": {
    "h": 68.182,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60541,
    "c": 0.11296,
    "h": 116.5
  },
  "luminance": 0.22843
}

Semantic roles & 50–950 ramp

primary
#7E8A32
secondary
#7066B2
accent
#51D664
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8A32

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

Preview Lab → · Contrast checker → · Palette generator →

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