#628D21#628D21

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

Color values

HEX#628D21
RGBrgb(98, 141, 33)
HSLhsl(84, 62%, 34%)
HSVhsv(84, 77%, 55%)
CMYKcmyk(30.5%, 0%, 76.6%, 44.7%)
CIE-LABlab(53.77, -31.50, 49.36)
CIE-LCHlch(53.77, 58.56, 122.55°)
OKLaboklab(59.08% -0.0899 0.1099)
OKLCHoklch(59.08% 0.142 129.3)
XYZxyz(14.8364, 21.7558, 4.8562)
Luminance0.2176 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D21 #4C218D
analogous
#8D8221 #628D21 #2C8D21
triadic
#628D21 #21628D #8D2162
tetradic
#628D21 #218D82 #4C218D #8D212C
square
#628D21 #218D82 #4C218D #8D212C
split-complementary
#628D21 #212C8D #82218D
monochromatic
#1D2A0A #405B15 #628D21 #84BF2D #A2D652

Accessibility & contrast

On white

3.92
#628D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##628D21#FFFFFF#000000##000000
##628D211.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #628d21;
/* rgb */ color: rgb(98, 141, 33);
/* oklch */ color: oklch(59.1% 0.142 129.3);
Tailwind
colors: {
  custom: {
    50: '#93ae65',
    500: '#628d21',
    950: '#000000',
  },
}
SCSS
$custom: #628d21;
$custom-light: #93ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#628d21",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 83.889,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5908,
    "c": 0.14198,
    "h": 129.3
  },
  "luminance": 0.21756
}

Semantic roles & 50–950 ramp

primary
#628D21
secondary
#7A50BA
accent
#43E583
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628D21

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

Preview Lab → · Contrast checker → · Palette generator →

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