#628D28#628D28

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

Color values

HEX#628D28
RGBrgb(98, 141, 40)
HSLhsl(86, 56%, 35%)
HSVhsv(86, 72%, 55%)
CMYKcmyk(30.5%, 0%, 71.6%, 44.7%)
CIE-LABlab(53.81, -31.05, 46.76)
CIE-LCHlch(53.81, 56.13, 123.58°)
OKLaboklab(59.13% -0.0881 0.1056)
OKLCHoklch(59.13% 0.137 129.9)
XYZxyz(14.9448, 21.7992, 5.4273)
Luminance0.2180 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D28 #53288D
analogous
#8D8528 #628D28 #2F8D28
triadic
#628D28 #28628D #8D2862
tetradic
#628D28 #288D85 #53288D #8D282F
square
#628D28 #288D85 #53288D #8D282F
split-complementary
#628D28 #282F8D #85288D
monochromatic
#202E0D #415D1A #628D28 #83BD36 #A0D15E

Accessibility & contrast

On white

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

On black

5.36
#628D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628D28
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628D28#FFFFFF#000000##000000
##628D281.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948318
Deuteranopia (green-blind)
#8E8031
Tritanopia (blue-blind)
#658779
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628d28;
/* rgb */ color: rgb(98, 141, 40);
/* oklch */ color: oklch(59.1% 0.137 129.9);
Tailwind
colors: {
  custom: {
    50: '#92ae68',
    500: '#628d28',
    950: '#000000',
  },
}
SCSS
$custom: #628d28;
$custom-light: #92ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#628d28",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 85.545,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59133,
    "c": 0.13749,
    "h": 129.9
  },
  "luminance": 0.218
}

Semantic roles & 50–950 ramp

primary
#628D28
secondary
#825AB7
accent
#49DF89
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628D28

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

Preview Lab → · Contrast checker → · Palette generator →

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