#7E8A33#7E8A33

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

Color values

HEX#7E8A33
RGBrgb(126, 138, 51)
HSLhsl(68, 46%, 37%)
HSVhsv(68, 63%, 54%)
CMYKcmyk(8.7%, 0%, 63%, 45.9%)
CIE-LABlab(54.92, -17.02, 43.80)
CIE-LCHlch(54.92, 46.99, 111.24°)
OKLaboklab(60.55% -0.05 0.1003)
OKLCHoklch(60.55% 0.112 116.5)
XYZxyz(18.2906, 22.8518, 6.5786)
Luminance0.2285 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A33 #3F338A
analogous
#8A6B33 #7E8A33 #538A33
triadic
#7E8A33 #337E8A #8A337E
tetradic
#7E8A33 #338A6B #3F338A #8A3353
square
#7E8A33 #338A6B #3F338A #8A3353
split-complementary
#7E8A33 #33538A #6B338A
monochromatic
#2C3112 #555D22 #7E8A33 #A7B744 #BDC96E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A33#FFFFFF#000000##000000
##7E8A331.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)
#938329
Deuteranopia (green-blind)
#928439
Tritanopia (blue-blind)
#868378
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a33;
/* rgb */ color: rgb(126, 138, 51);
/* oklch */ color: oklch(60.6% 0.112 116.5);
Tailwind
colors: {
  custom: {
    50: '#a6ac6f',
    500: '#7e8a33',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a33;
$custom-light: #a6ac6f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a33",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 51
  },
  "hsl": {
    "h": 68.276,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60551,
    "c": 0.11211,
    "h": 116.5
  },
  "luminance": 0.22852
}

Semantic roles & 50–950 ramp

primary
#7E8A33
secondary
#7267B1
accent
#52D664
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8A33

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

Preview Lab → · Contrast checker → · Palette generator →

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