#628B40#628B40

#628B40 is a mid, moderate yellow-green. Relative luminance 0.214; OKLCH L 58.9% C 0.114 H 132.6°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#628B40
RGBrgb(98, 139, 64)
HSLhsl(93, 37%, 40%)
HSVhsv(93, 54%, 55%)
CMYKcmyk(29.5%, 0%, 54%, 45.5%)
CIE-LABlab(53.42, -27.85, 35.28)
CIE-LCHlch(53.42, 44.95, 128.29°)
OKLaboklab(58.89% -0.0773 0.0839)
OKLCHoklch(58.89% 0.114 132.6)
XYZxyz(15.1948, 21.4316, 8.1856)
Luminance0.2143 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628B40 #69408B
analogous
#888B40 #628B40 #408B43
triadic
#628B40 #40628B #8B4062
tetradic
#628B40 #40888B #69408B #8B4340
square
#628B40 #40888B #69408B #8B4340
split-complementary
#628B40 #43408B #8B4088
monochromatic
#273719 #44612D #628B40 #80B257 #A0C581

Accessibility & contrast

On white

3.97
#628B40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#628B40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628B40
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628B40#FFFFFF#000000##000000
##628B401.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#908239
Deuteranopia (green-blind)
#8A7E45
Tritanopia (blue-blind)
#63867A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628b40;
/* rgb */ color: rgb(98, 139, 64);
/* oklch */ color: oklch(58.9% 0.114 132.6);
Tailwind
colors: {
  custom: {
    50: '#91ad77',
    500: '#628b40',
    950: '#000000',
  },
}
SCSS
$custom: #628b40;
$custom-light: #91ad77;
$custom-dark: #000000;
JSON
{
  "hex": "#628b40",
  "rgb": {
    "r": 98,
    "g": 139,
    "b": 64
  },
  "hsl": {
    "h": 92.8,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.58888,
    "c": 0.11405,
    "h": 132.6
  },
  "luminance": 0.21432
}

Semantic roles & 50–950 ramp

primary
#628B40
secondary
#9678AF
accent
#5BCD99
background
#F9FAF7
surface
#F1F4ED
border
#CBCEC8
text
#0D1009
muted
#7E7F7B

Preview Lab

Preview with #628B40

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

Preview Lab → · Contrast checker → · Palette generator →

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