#7E8B2E#7E8B2E

#7E8B2E is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 60.7% C 0.117 H 116.8°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7E8B2E
RGBrgb(126, 139, 46)
HSLhsl(68, 50%, 36%)
HSVhsv(68, 67%, 55%)
CMYKcmyk(9.4%, 0%, 66.9%, 45.5%)
CIE-LABlab(55.17, -17.90, 46.28)
CIE-LCHlch(55.17, 49.62, 111.15°)
OKLaboklab(60.74% -0.053 0.1048)
OKLCHoklch(60.74% 0.117 116.8)
XYZxyz(18.3303, 23.0983, 6.0770)
Luminance0.2310 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B2E #3B2E8B
analogous
#8B6A2E #7E8B2E #508B2E
triadic
#7E8B2E #2E7E8B #8B2E7E
tetradic
#7E8B2E #2E8B6A #3B2E8B #8B2E50
square
#7E8B2E #2E8B6A #3B2E8B #8B2E50
split-complementary
#7E8B2E #2E508B #6A2E8B
monochromatic
#2B2F10 #545D1F #7E8B2E #A8B93D #BECD67

Accessibility & contrast

On white

3.74
#7E8B2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#7E8B2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B2E
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B2E#FFFFFF#000000##000000
##7E8B2E1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948421
Deuteranopia (green-blind)
#938535
Tritanopia (blue-blind)
#868378
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b2e;
/* rgb */ color: rgb(126, 139, 46);
/* oklch */ color: oklch(60.7% 0.117 116.8);
Tailwind
colors: {
  custom: {
    50: '#a6ac6c',
    500: '#7e8b2e',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b2e;
$custom-light: #a6ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b2e",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 46
  },
  "hsl": {
    "h": 68.387,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60741,
    "c": 0.11748,
    "h": 116.8
  },
  "luminance": 0.23098
}

Semantic roles & 50–950 ramp

primary
#7E8B2E
secondary
#6D61B3
accent
#4EDA62
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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