#628C28#628C28

#628C28 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.9% C 0.136 H 129.6°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#628C28
RGBrgb(98, 140, 40)
HSLhsl(85, 56%, 35%)
HSVhsv(85, 71%, 55%)
CMYKcmyk(30%, 0%, 71.4%, 45.1%)
CIE-LABlab(53.50, -30.58, 46.44)
CIE-LCHlch(53.50, 55.61, 123.36°)
OKLaboklab(58.88% -0.0868 0.1049)
OKLCHoklch(58.88% 0.136 129.6)
XYZxyz(14.7980, 21.5056, 5.3784)
Luminance0.2151 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628C28 #52288C
analogous
#8C8428 #628C28 #308C28
triadic
#628C28 #28628C #8C2862
tetradic
#628C28 #288C84 #52288C #8C2830
square
#628C28 #288C84 #52288C #8C2830
split-complementary
#628C28 #28308C #84288C
monochromatic
#1F2D0D #415C1A #628C28 #83BC36 #A0D15E

Accessibility & contrast

On white

3.96
#628C28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#628C28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628C28
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628C28#FFFFFF#000000##000000
##628C281.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938218
Deuteranopia (green-blind)
#8D7F31
Tritanopia (blue-blind)
#658678
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628c28;
/* rgb */ color: rgb(98, 140, 40);
/* oklch */ color: oklch(58.9% 0.136 129.6);
Tailwind
colors: {
  custom: {
    50: '#92ae68',
    500: '#628c28',
    950: '#000000',
  },
}
SCSS
$custom: #628c28;
$custom-light: #92ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#628c28",
  "rgb": {
    "r": 98,
    "g": 140,
    "b": 40
  },
  "hsl": {
    "h": 85.2,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58877,
    "c": 0.13614,
    "h": 129.6
  },
  "luminance": 0.21506
}

Semantic roles & 50–950 ramp

primary
#628C28
secondary
#805AB6
accent
#49DF88
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628C28

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

Preview Lab → · Contrast checker → · Palette generator →

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