#7E8A2B#7E8A2B

#7E8A2B is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.119 H 116.3°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7E8A2B
RGBrgb(126, 138, 43)
HSLhsl(68, 52%, 35%)
HSVhsv(68, 69%, 54%)
CMYKcmyk(8.7%, 0%, 68.8%, 45.9%)
CIE-LABlab(54.85, -17.58, 47.22)
CIE-LCHlch(54.85, 50.39, 110.42°)
OKLaboklab(60.48% -0.0524 0.1063)
OKLCHoklch(60.48% 0.119 116.3)
XYZxyz(18.1291, 22.7872, 5.7284)
Luminance0.2279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A2B #372B8A
analogous
#8A662B #7E8A2B #4E8A2B
triadic
#7E8A2B #2B7E8A #8A2B7E
tetradic
#7E8A2B #2B8A66 #372B8A #8A2B4E
square
#7E8A2B #2B8A66 #372B8A #8A2B4E
split-complementary
#7E8A2B #2B4E8A #662B8A
monochromatic
#292D0E #535B1C #7E8A2B #A9B93A #C0CE61

Accessibility & contrast

On white

3.78
#7E8A2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#7E8A2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A2B
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A2B#FFFFFF#000000##000000
##7E8A2B1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831D
Deuteranopia (green-blind)
#938432
Tritanopia (blue-blind)
#868277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a2b;
/* rgb */ color: rgb(126, 138, 43);
/* oklch */ color: oklch(60.5% 0.119 116.3);
Tailwind
colors: {
  custom: {
    50: '#a6ac6a',
    500: '#7e8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a2b;
$custom-light: #a6ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a2b",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 67.579,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60476,
    "c": 0.11856,
    "h": 116.3
  },
  "luminance": 0.22787
}

Semantic roles & 50–950 ramp

primary
#7E8A2B
secondary
#685DB4
accent
#4CDC5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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