#7E8A34#7E8A34

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

Color values

HEX#7E8A34
RGBrgb(126, 138, 52)
HSLhsl(68, 45%, 37%)
HSVhsv(68, 62%, 54%)
CMYKcmyk(8.7%, 0%, 62.3%, 45.9%)
CIE-LABlab(54.93, -16.94, 43.35)
CIE-LCHlch(54.93, 46.54, 111.35°)
OKLaboklab(60.56% -0.0497 0.0995)
OKLCHoklch(60.56% 0.111 116.5)
XYZxyz(18.3129, 22.8607, 6.6960)
Luminance0.2286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A34 #40348A
analogous
#8A6B34 #7E8A34 #538A34
triadic
#7E8A34 #347E8A #8A347E
tetradic
#7E8A34 #348A6B #40348A #8A3453
square
#7E8A34 #348A6B #40348A #8A3453
split-complementary
#7E8A34 #34538A #6B348A
monochromatic
#2D3113 #555E23 #7E8A34 #A7B645 #BCC96F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A34#FFFFFF#000000##000000
##7E8A341.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)
#93832A
Deuteranopia (green-blind)
#92843A
Tritanopia (blue-blind)
#858378
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a34;
/* rgb */ color: rgb(126, 138, 52);
/* oklch */ color: oklch(60.6% 0.111 116.5);
Tailwind
colors: {
  custom: {
    50: '#a6ac6f',
    500: '#7e8a34',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a34;
$custom-light: #a6ac6f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a34",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 52
  },
  "hsl": {
    "h": 68.372,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.60561,
    "c": 0.11124,
    "h": 116.5
  },
  "luminance": 0.22861
}

Semantic roles & 50–950 ramp

primary
#7E8A34
secondary
#7369B1
accent
#53D565
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101008
muted
#7F7F7B

Preview Lab

Preview with #7E8A34

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

Preview Lab → · Contrast checker → · Palette generator →

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