#628E28#628E28

#628E28 is a mid, vivid yellow-green. Relative luminance 0.221; OKLCH L 59.4% C 0.139 H 130.1°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#628E28
RGBrgb(98, 142, 40)
HSLhsl(86, 56%, 36%)
HSVhsv(86, 72%, 56%)
CMYKcmyk(31%, 0%, 71.8%, 44.3%)
CIE-LABlab(54.13, -31.52, 47.08)
CIE-LCHlch(54.13, 56.66, 123.80°)
OKLaboklab(59.39% -0.0894 0.1062)
OKLCHoklch(59.39% 0.139 130.1)
XYZxyz(15.0929, 22.0954, 5.4767)
Luminance0.2210 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628E28 #54288E
analogous
#8E8728 #628E28 #2F8E28
triadic
#628E28 #28628E #8E2862
tetradic
#628E28 #288E87 #54288E #8E282F
square
#628E28 #288E87 #54288E #8E282F
split-complementary
#628E28 #282F8E #87288E
monochromatic
#202F0D #415E1B #628E28 #83BE35 #A0D25F

Accessibility & contrast

On white

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

On black

5.42
#628E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628E28
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628E28#FFFFFF#000000##000000
##628E281.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#958317
Deuteranopia (green-blind)
#8F8031
Tritanopia (blue-blind)
#65887A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628e28;
/* rgb */ color: rgb(98, 142, 40);
/* oklch */ color: oklch(59.4% 0.139 130.1);
Tailwind
colors: {
  custom: {
    50: '#92af68',
    500: '#628e28',
    950: '#000000',
  },
}
SCSS
$custom: #628e28;
$custom-light: #92af68;
$custom-dark: #000000;
JSON
{
  "hex": "#628e28",
  "rgb": {
    "r": 98,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 85.882,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59389,
    "c": 0.13882,
    "h": 130.1
  },
  "luminance": 0.22096
}

Semantic roles & 50–950 ramp

primary
#628E28
secondary
#835BB7
accent
#48DF8A
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628E28

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

Preview Lab → · Contrast checker → · Palette generator →

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