#7E8A2A#7E8A2A

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

Color values

HEX#7E8A2A
RGBrgb(126, 138, 42)
HSLhsl(68, 53%, 35%)
HSVhsv(68, 70%, 54%)
CMYKcmyk(8.7%, 0%, 69.6%, 45.9%)
CIE-LABlab(54.84, -17.65, 47.62)
CIE-LCHlch(54.84, 50.79, 110.33°)
OKLaboklab(60.47% -0.0527 0.107)
OKLCHoklch(60.47% 0.119 116.2)
XYZxyz(18.1110, 22.7800, 5.6329)
Luminance0.2278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A2A #362A8A
analogous
#8A662A #7E8A2A #4E8A2A
triadic
#7E8A2A #2A7E8A #8A2A7E
tetradic
#7E8A2A #2A8A66 #362A8A #8A2A4E
square
#7E8A2A #2A8A66 #362A8A #8A2A4E
split-complementary
#7E8A2A #2A4E8A #662A8A
monochromatic
#282C0D #535B1C #7E8A2A #A9B938 #C1CF60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8A2A#FFFFFF#000000##000000
##7E8A2A1.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)
#94831C
Deuteranopia (green-blind)
#938431
Tritanopia (blue-blind)
#868277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a2a;
/* rgb */ color: rgb(126, 138, 42);
/* oklch */ color: oklch(60.5% 0.119 116.2);
Tailwind
colors: {
  custom: {
    50: '#a6ac6a',
    500: '#7e8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a2a;
$custom-light: #a6ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a2a",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 67.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60467,
    "c": 0.1193,
    "h": 116.2
  },
  "luminance": 0.2278
}

Semantic roles & 50–950 ramp

primary
#7E8A2A
secondary
#675BB4
accent
#4BDD5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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