#628E40#628E40

#628E40 is a mid, moderate yellow-green. Relative luminance 0.223; OKLCH L 59.6% C 0.119 H 133.3°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#628E40
RGBrgb(98, 142, 64)
HSLhsl(94, 38%, 40%)
HSVhsv(94, 55%, 56%)
CMYKcmyk(31%, 0%, 54.9%, 44.3%)
CIE-LABlab(54.36, -29.30, 36.39)
CIE-LCHlch(54.36, 46.72, 128.84°)
OKLaboklab(59.65% -0.0813 0.0863)
OKLCHoklch(59.65% 0.119 133.3)
XYZxyz(15.6351, 22.3123, 8.3324)
Luminance0.2231 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628E40 #6C408E
analogous
#898E40 #628E40 #408E45
triadic
#628E40 #40628E #8E4062
tetradic
#628E40 #40898E #6C408E #8E4540
square
#628E40 #40898E #6C408E #8E4540
split-complementary
#628E40 #45408E #8E4089
monochromatic
#283A1A #45642D #628E40 #80B458 #A0C782

Accessibility & contrast

On white

3.84
#628E40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#628E40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628E40
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628E40#FFFFFF#000000##000000
##628E401.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938439
Deuteranopia (green-blind)
#8D8145
Tritanopia (blue-blind)
#62897C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #628e40;
/* rgb */ color: rgb(98, 142, 64);
/* oklch */ color: oklch(59.6% 0.119 133.3);
Tailwind
colors: {
  custom: {
    50: '#91af77',
    500: '#628e40',
    950: '#000000',
  },
}
SCSS
$custom: #628e40;
$custom-light: #91af77;
$custom-dark: #000000;
JSON
{
  "hex": "#628e40",
  "rgb": {
    "r": 98,
    "g": 142,
    "b": 64
  },
  "hsl": {
    "h": 93.846,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.59649,
    "c": 0.11856,
    "h": 133.3
  },
  "luminance": 0.22313
}

Semantic roles & 50–950 ramp

primary
#628E40
secondary
#9979B1
accent
#5ACE9B
background
#F9FAF7
surface
#F1F4ED
border
#CBCEC8
text
#0D1009
muted
#7E7F7B

Preview Lab

Preview with #628E40

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

Preview Lab → · Contrast checker → · Palette generator →

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