#628E21#628E21

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

Color values

HEX#628E21
RGBrgb(98, 142, 33)
HSLhsl(84, 62%, 34%)
HSVhsv(84, 77%, 56%)
CMYKcmyk(31%, 0%, 76.8%, 44.3%)
CIE-LABlab(54.08, -31.97, 49.67)
CIE-LCHlch(54.08, 59.07, 122.77°)
OKLaboklab(59.34% -0.0912 0.1105)
OKLCHoklch(59.34% 0.143 129.5)
XYZxyz(14.9845, 22.0520, 4.9055)
Luminance0.2205 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628E21 #4D218E
analogous
#8E8421 #628E21 #2C8E21
triadic
#628E21 #21628E #8E2162
tetradic
#628E21 #218E84 #4D218E #8E212C
square
#628E21 #218E84 #4D218E #8E212C
split-complementary
#628E21 #212C8E #84218E
monochromatic
#1D2B0A #405C15 #628E21 #84C02D #A1D752

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628E21#FFFFFF#000000##000000
##628E211.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)
#958308
Deuteranopia (green-blind)
#8F802C
Tritanopia (blue-blind)
#658879
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628e21;
/* rgb */ color: rgb(98, 142, 33);
/* oklch */ color: oklch(59.3% 0.143 129.5);
Tailwind
colors: {
  custom: {
    50: '#93af65',
    500: '#628e21',
    950: '#000000',
  },
}
SCSS
$custom: #628e21;
$custom-light: #93af65;
$custom-dark: #000000;
JSON
{
  "hex": "#628e21",
  "rgb": {
    "r": 98,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 84.22,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59337,
    "c": 0.14328,
    "h": 129.5
  },
  "luminance": 0.22052
}

Semantic roles & 50–950 ramp

primary
#628E21
secondary
#7B50BA
accent
#42E584
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628E21

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

Preview Lab → · Contrast checker → · Palette generator →

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