#7E8034#7E8034

#7E8034 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.2% C 0.099 H 110.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7E8034
RGBrgb(126, 128, 52)
HSLhsl(62, 42%, 35%)
HSVhsv(62, 59%, 50%)
CMYKcmyk(1.6%, 0%, 59.4%, 49.8%)
CIE-LABlab(51.98, -11.60, 40.09)
CIE-LCHlch(51.98, 41.73, 106.13°)
OKLaboklab(58.2% -0.0346 0.0926)
OKLCHoklch(58.2% 0.099 110.5)
XYZxyz(16.9436, 20.1223, 6.2396)
Luminance0.2012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8034 #363480
analogous
#805C34 #7E8034 #588034
triadic
#7E8034 #347E80 #80347E
tetradic
#7E8034 #34805C #363480 #803458
square
#7E8034 #34805C #363480 #803458
split-complementary
#7E8034 #345880 #5C3480
monochromatic
#282911 #535422 #7E8034 #A9AC46 #C1C36B

Accessibility & contrast

On white

4.18
#7E8034 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#7E8034 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8034
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8034#FFFFFF#000000##000000
##7E80341.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#897B2C
Deuteranopia (green-blind)
#8A7D38
Tritanopia (blue-blind)
#867970
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e8034;
/* rgb */ color: rgb(126, 128, 52);
/* oklch */ color: oklch(58.2% 0.099 110.5);
Tailwind
colors: {
  custom: {
    50: '#a5a46f',
    500: '#7e8034',
    950: '#000000',
  },
}
SCSS
$custom: #7e8034;
$custom-light: #a5a46f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8034",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 52
  },
  "hsl": {
    "h": 61.579,
    "s": 42.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58198,
    "c": 0.09885,
    "h": 110.5
  },
  "luminance": 0.20122
}

Semantic roles & 50–950 ramp

primary
#7E8034
secondary
#6765AB
accent
#56D259
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E8034

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

Preview Lab → · Contrast checker → · Palette generator →

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