#628F40#628F40

#628F40 is a mid, vivid yellow-green. Relative luminance 0.226; OKLCH L 59.9% C 0.120 H 133.5°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#628F40
RGBrgb(98, 143, 64)
HSLhsl(94, 38%, 41%)
HSVhsv(94, 55%, 56%)
CMYKcmyk(31.5%, 0%, 55.2%, 43.9%)
CIE-LABlab(54.67, -29.78, 36.76)
CIE-LCHlch(54.67, 47.31, 129.01°)
OKLaboklab(59.9% -0.0826 0.0871)
OKLCHoklch(59.9% 0.12 133.5)
XYZxyz(15.7846, 22.6112, 8.3822)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628F40 #6D408F
analogous
#898F40 #628F40 #408F45
triadic
#628F40 #40628F #8F4062
tetradic
#628F40 #40898F #6D408F #8F4540
square
#628F40 #40898F #6D408F #8F4540
split-complementary
#628F40 #45408F #8F4089
monochromatic
#283A1A #45652D #628F40 #80B458 #A0C782

Accessibility & contrast

On white

3.80
#628F40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#628F40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628F40
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628F40#FFFFFF#000000##000000
##628F401.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948539
Deuteranopia (green-blind)
#8E8145
Tritanopia (blue-blind)
#628A7D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #628f40;
/* rgb */ color: rgb(98, 143, 64);
/* oklch */ color: oklch(59.9% 0.120 133.5);
Tailwind
colors: {
  custom: {
    50: '#91b077',
    500: '#628f40',
    950: '#000000',
  },
}
SCSS
$custom: #628f40;
$custom-light: #91b077;
$custom-dark: #000000;
JSON
{
  "hex": "#628f40",
  "rgb": {
    "r": 98,
    "g": 143,
    "b": 64
  },
  "hsl": {
    "h": 94.177,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.59902,
    "c": 0.12005,
    "h": 133.5
  },
  "luminance": 0.22612
}

Semantic roles & 50–950 ramp

primary
#628F40
secondary
#9979B2
accent
#5ACE9C
background
#F9FAF7
surface
#F1F4ED
border
#CBCEC8
text
#0D1009
muted
#7E7F7B

Preview Lab

Preview with #628F40

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

Preview Lab → · Contrast checker → · Palette generator →

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