#7E8D2D#7E8D2D

#7E8D2D is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.121 H 117.8°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7E8D2D
RGBrgb(126, 141, 45)
HSLhsl(69, 52%, 36%)
HSVhsv(69, 68%, 55%)
CMYKcmyk(10.6%, 0%, 68.1%, 44.7%)
CIE-LABlab(55.76, -19.01, 47.32)
CIE-LCHlch(55.76, 50.99, 111.89°)
OKLaboklab(61.21% -0.0562 0.1069)
OKLCHoklch(61.21% 0.121 117.8)
XYZxyz(18.6031, 23.6750, 6.0718)
Luminance0.2367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D2D #3C2D8D
analogous
#8D6C2D #7E8D2D #4E8D2D
triadic
#7E8D2D #2D7E8D #8D2D7E
tetradic
#7E8D2D #2D8D6C #3C2D8D #8D2D4E
square
#7E8D2D #2D8D6C #3C2D8D #8D2D4E
split-complementary
#7E8D2D #2D4E8D #6C2D8D
monochromatic
#2B300F #555F1E #7E8D2D #A7BB3C #BECE66

Accessibility & contrast

On white

3.66
#7E8D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#7E8D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D2D
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D2D#FFFFFF#000000##000000
##7E8D2D1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#96851F
Deuteranopia (green-blind)
#958634
Tritanopia (blue-blind)
#86857A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8d2d;
/* rgb */ color: rgb(126, 141, 45);
/* oklch */ color: oklch(61.2% 0.121 117.8);
Tailwind
colors: {
  custom: {
    50: '#a6ae6c',
    500: '#7e8d2d',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d2d;
$custom-light: #a6ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d2d",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 69.375,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.6121,
    "c": 0.12074,
    "h": 117.8
  },
  "luminance": 0.23675
}

Semantic roles & 50–950 ramp

primary
#7E8D2D
secondary
#6E61B5
accent
#4DDB63
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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