#7D8F2A#7D8F2A

#7D8F2A is a mid, vivid yellow-green. Relative luminance 0.242; OKLCH L 61.6% C 0.126 H 119.0°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7D8F2A
RGBrgb(125, 143, 42)
HSLhsl(71, 55%, 36%)
HSVhsv(71, 71%, 56%)
CMYKcmyk(12.6%, 0%, 70.6%, 43.9%)
CIE-LABlab(56.26, -20.67, 49.03)
CIE-LCHlch(56.26, 53.21, 112.86°)
OKLaboklab(61.59% -0.0611 0.11)
OKLCHoklch(61.59% 0.126 119)
XYZxyz(18.6982, 24.1722, 5.8707)
Luminance0.2417 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8F2A #3C2A8F
analogous
#8F6F2A #7D8F2A #4B8F2A
triadic
#7D8F2A #2A7D8F #8F2A7D
tetradic
#7D8F2A #2A8F6F #3C2A8F #8F2A4B
square
#7D8F2A #2A8F6F #3C2A8F #8F2A4B
split-complementary
#7D8F2A #2A4B8F #6F2A8F
monochromatic
#2A300E #54601C #7D8F2A #A6BE38 #BDD162

Accessibility & contrast

On white

3.60
#7D8F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#7D8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8F2A
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8F2A#FFFFFF#000000##000000
##7D8F2A1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871A
Deuteranopia (green-blind)
#968732
Tritanopia (blue-blind)
#84877B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7d8f2a;
/* rgb */ color: rgb(125, 143, 42);
/* oklch */ color: oklch(61.6% 0.126 119.0);
Tailwind
colors: {
  custom: {
    50: '#a5af6a',
    500: '#7d8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #7d8f2a;
$custom-light: #a5af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8f2a",
  "rgb": {
    "r": 125,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 70.693,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61585,
    "c": 0.12581,
    "h": 119
  },
  "luminance": 0.24172
}

Semantic roles & 50–950 ramp

primary
#7D8F2A
secondary
#6E5EB7
accent
#4ADE64
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7D8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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