#7E8A31#7E8A31

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

Color values

HEX#7E8A31
RGBrgb(126, 138, 49)
HSLhsl(68, 48%, 37%)
HSVhsv(68, 64%, 54%)
CMYKcmyk(8.7%, 0%, 64.5%, 45.9%)
CIE-LABlab(54.90, -17.17, 44.68)
CIE-LCHlch(54.90, 47.86, 111.02°)
OKLaboklab(60.53% -0.0507 0.1019)
OKLCHoklch(60.53% 0.114 116.4)
XYZxyz(18.2474, 22.8346, 6.3514)
Luminance0.2283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A31 #3D318A
analogous
#8A6A31 #7E8A31 #528A31
triadic
#7E8A31 #317E8A #8A317E
tetradic
#7E8A31 #318A6A #3D318A #8A3152
square
#7E8A31 #318A6A #3D318A #8A3152
split-complementary
#7E8A31 #31528A #6A318A
monochromatic
#2C3011 #555D21 #7E8A31 #A7B741 #BECA6B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A31#FFFFFF#000000##000000
##7E8A311.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)
#938326
Deuteranopia (green-blind)
#928437
Tritanopia (blue-blind)
#868277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a31;
/* rgb */ color: rgb(126, 138, 49);
/* oklch */ color: oklch(60.5% 0.114 116.4);
Tailwind
colors: {
  custom: {
    50: '#a6ac6e',
    500: '#7e8a31',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a31;
$custom-light: #a6ac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a31",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 68.09,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60531,
    "c": 0.11381,
    "h": 116.4
  },
  "luminance": 0.22834
}

Semantic roles & 50–950 ramp

primary
#7E8A31
secondary
#6F65B2
accent
#51D763
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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