#628E20#628E20

#628E20 is a mid, vivid yellow-green. Relative luminance 0.220; OKLCH L 59.3% C 0.144 H 129.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#628E20
RGBrgb(98, 142, 32)
HSLhsl(84, 63%, 34%)
HSVhsv(84, 77%, 56%)
CMYKcmyk(31%, 0%, 77.5%, 44.3%)
CIE-LABlab(54.08, -32.03, 50.01)
CIE-LCHlch(54.08, 59.39, 122.64°)
OKLaboklab(59.33% -0.0914 0.1111)
OKLCHoklch(59.33% 0.144 129.5)
XYZxyz(14.9707, 22.0465, 4.8329)
Luminance0.2205 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628E20 #4C208E
analogous
#8E8320 #628E20 #2B8E20
triadic
#628E20 #20628E #8E2062
tetradic
#628E20 #208E83 #4C208E #8E202B
square
#628E20 #208E83 #4C208E #8E202B
split-complementary
#628E20 #202B8E #83208E
monochromatic
#1D2A09 #405C15 #628E20 #84C02B #A2D851

Accessibility & contrast

On white

3.88
#628E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#628E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628E20
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628E20#FFFFFF#000000##000000
##628E201.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958306
Deuteranopia (green-blind)
#8F802B
Tritanopia (blue-blind)
#658879
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628e20;
/* rgb */ color: rgb(98, 142, 32);
/* oklch */ color: oklch(59.3% 0.144 129.5);
Tailwind
colors: {
  custom: {
    50: '#93af64',
    500: '#628e20',
    950: '#000000',
  },
}
SCSS
$custom: #628e20;
$custom-light: #93af64;
$custom-dark: #000000;
JSON
{
  "hex": "#628e20",
  "rgb": {
    "r": 98,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 84,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5933,
    "c": 0.14386,
    "h": 129.5
  },
  "luminance": 0.22047
}

Semantic roles & 50–950 ramp

primary
#628E20
secondary
#7A4FBB
accent
#42E683
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628E20

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

Preview Lab → · Contrast checker → · Palette generator →

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