#7E8B2D#7E8B2D

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

Color values

HEX#7E8B2D
RGBrgb(126, 139, 45)
HSLhsl(68, 51%, 36%)
HSVhsv(68, 68%, 55%)
CMYKcmyk(9.4%, 0%, 67.6%, 45.5%)
CIE-LABlab(55.17, -17.97, 46.70)
CIE-LCHlch(55.17, 50.04, 111.05°)
OKLaboklab(60.73% -0.0533 0.1056)
OKLCHoklch(60.73% 0.118 116.8)
XYZxyz(18.3109, 23.0905, 5.9744)
Luminance0.2309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B2D #3A2D8B
analogous
#8B692D #7E8B2D #4F8B2D
triadic
#7E8B2D #2D7E8B #8B2D7E
tetradic
#7E8B2D #2D8B69 #3A2D8B #8B2D4F
square
#7E8B2D #2D8B69 #3A2D8B #8B2D4F
split-complementary
#7E8B2D #2D4F8B #692D8B
monochromatic
#2A2F0F #545D1E #7E8B2D #A8B93C #BFCD65

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8B2D#FFFFFF#000000##000000
##7E8B2D1.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)
#948420
Deuteranopia (green-blind)
#938534
Tritanopia (blue-blind)
#868378
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b2d;
/* rgb */ color: rgb(126, 139, 45);
/* oklch */ color: oklch(60.7% 0.118 116.8);
Tailwind
colors: {
  custom: {
    50: '#a6ac6b',
    500: '#7e8b2d',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b2d;
$custom-light: #a6ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b2d",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 45
  },
  "hsl": {
    "h": 68.298,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60732,
    "c": 0.11827,
    "h": 116.8
  },
  "luminance": 0.2309
}

Semantic roles & 50–950 ramp

primary
#7E8B2D
secondary
#6C60B4
accent
#4DDB61
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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