#628D40#628D40

#628D40 is a mid, moderate yellow-green. Relative luminance 0.220; OKLCH L 59.4% C 0.117 H 133.1°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#628D40
RGBrgb(98, 141, 64)
HSLhsl(94, 38%, 40%)
HSVhsv(94, 55%, 55%)
CMYKcmyk(30.5%, 0%, 54.6%, 44.7%)
CIE-LABlab(54.04, -28.82, 36.02)
CIE-LCHlch(54.04, 46.13, 128.66°)
OKLaboklab(59.4% -0.0799 0.0855)
OKLCHoklch(59.4% 0.117 133.1)
XYZxyz(15.4870, 22.0161, 8.2830)
Luminance0.2202 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D40 #6B408D
analogous
#898D40 #628D40 #408D44
triadic
#628D40 #40628D #8D4062
tetradic
#628D40 #40898D #6B408D #8D4440
square
#628D40 #40898D #6B408D #8D4440
split-complementary
#628D40 #44408D #8D4089
monochromatic
#27391A #45632D #628D40 #80B357 #A0C681

Accessibility & contrast

On white

3.89
#628D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#628D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628D40
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628D40#FFFFFF#000000##000000
##628D401.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928339
Deuteranopia (green-blind)
#8C8045
Tritanopia (blue-blind)
#63887C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628d40;
/* rgb */ color: rgb(98, 141, 64);
/* oklch */ color: oklch(59.4% 0.117 133.1);
Tailwind
colors: {
  custom: {
    50: '#91ae77',
    500: '#628d40',
    950: '#000000',
  },
}
SCSS
$custom: #628d40;
$custom-light: #91ae77;
$custom-dark: #000000;
JSON
{
  "hex": "#628d40",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 93.506,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.59395,
    "c": 0.11706,
    "h": 133.1
  },
  "luminance": 0.22017
}

Semantic roles & 50–950 ramp

primary
#628D40
secondary
#9878B0
accent
#5ACE9B
background
#F9FAF7
surface
#F1F4ED
border
#CBCEC8
text
#0D1009
muted
#7E7F7B

Preview Lab

Preview with #628D40

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

Preview Lab → · Contrast checker → · Palette generator →

#628D40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva