#628A40#628A40

#628A40 is a mid, moderate yellow-green. Relative luminance 0.211; OKLCH L 58.6% C 0.113 H 132.4°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#628A40
RGBrgb(98, 138, 64)
HSLhsl(92, 37%, 40%)
HSVhsv(92, 54%, 54%)
CMYKcmyk(29%, 0%, 53.6%, 45.9%)
CIE-LABlab(53.11, -27.37, 34.90)
CIE-LCHlch(53.11, 44.35, 128.10°)
OKLaboklab(58.63% -0.0759 0.0831)
OKLCHoklch(58.63% 0.113 132.4)
XYZxyz(15.0507, 21.1433, 8.1376)
Luminance0.2114 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628A40 #68408A
analogous
#878A40 #628A40 #408A43
triadic
#628A40 #40628A #8A4062
tetradic
#628A40 #40878A #68408A #8A4340
square
#628A40 #40878A #68408A #8A4340
split-complementary
#628A40 #43408A #8A4087
monochromatic
#273619 #44602D #628A40 #80B156 #9FC480

Accessibility & contrast

On white

4.02
#628A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#628A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628A40
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628A40#FFFFFF#000000##000000
##628A401.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8139
Deuteranopia (green-blind)
#897E45
Tritanopia (blue-blind)
#638579
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #628a40;
/* rgb */ color: rgb(98, 138, 64);
/* oklch */ color: oklch(58.6% 0.113 132.4);
Tailwind
colors: {
  custom: {
    50: '#91ac77',
    500: '#628a40',
    950: '#000000',
  },
}
SCSS
$custom: #628a40;
$custom-light: #91ac77;
$custom-dark: #000000;
JSON
{
  "hex": "#628a40",
  "rgb": {
    "r": 98,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 92.432,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.58634,
    "c": 0.11254,
    "h": 132.4
  },
  "luminance": 0.21144
}

Semantic roles & 50–950 ramp

primary
#628A40
secondary
#9577AF
accent
#5BCD98
background
#F9FAF7
surface
#F1F4ED
border
#CBCEC8
text
#0D1009
muted
#7E7F7B

Preview Lab

Preview with #628A40

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

Preview Lab → · Contrast checker → · Palette generator →

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