#628D20#628D20

#628D20 is a mid, vivid yellow-green. Relative luminance 0.218; OKLCH L 59.1% C 0.143 H 129.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#628D20
RGBrgb(98, 141, 32)
HSLhsl(84, 63%, 34%)
HSVhsv(84, 77%, 55%)
CMYKcmyk(30.5%, 0%, 77.3%, 44.7%)
CIE-LABlab(53.76, -31.56, 49.71)
CIE-LCHlch(53.76, 58.88, 122.41°)
OKLaboklab(59.07% -0.0901 0.1105)
OKLCHoklch(59.07% 0.143 129.2)
XYZxyz(14.8226, 21.7503, 4.7835)
Luminance0.2175 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D20 #4B208D
analogous
#8D8220 #628D20 #2B8D20
triadic
#628D20 #20628D #8D2062
tetradic
#628D20 #208D82 #4B208D #8D202B
square
#628D20 #208D82 #4B208D #8D202B
split-complementary
#628D20 #202B8D #82208D
monochromatic
#1D2909 #3F5B15 #628D20 #85BF2B #A2D750

Accessibility & contrast

On white

3.93
#628D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#628D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628D20
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628D20#FFFFFF#000000##000000
##628D201.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948206
Deuteranopia (green-blind)
#8E7F2B
Tritanopia (blue-blind)
#658778
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628d20;
/* rgb */ color: rgb(98, 141, 32);
/* oklch */ color: oklch(59.1% 0.143 129.2);
Tailwind
colors: {
  custom: {
    50: '#93ae64',
    500: '#628d20',
    950: '#000000',
  },
}
SCSS
$custom: #628d20;
$custom-light: #93ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#628d20",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 83.67,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59074,
    "c": 0.14257,
    "h": 129.2
  },
  "luminance": 0.21751
}

Semantic roles & 50–950 ramp

primary
#628D20
secondary
#794EBA
accent
#42E683
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628D20

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

Preview Lab → · Contrast checker → · Palette generator →

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