#628C2F#628C2F

#628C2F is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.9% C 0.131 H 130.3°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#628C2F
RGBrgb(98, 140, 47)
HSLhsl(87, 50%, 37%)
HSVhsv(87, 66%, 55%)
CMYKcmyk(30%, 0%, 66.4%, 45.1%)
CIE-LABlab(53.55, -30.03, 43.55)
CIE-LCHlch(53.55, 52.90, 124.59°)
OKLaboklab(58.94% -0.0847 0.0998)
OKLCHoklch(58.94% 0.131 130.3)
XYZxyz(14.9281, 21.5576, 6.0633)
Luminance0.2156 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628C2F #592F8C
analogous
#8C882F #628C2F #338C2F
triadic
#628C2F #2F628C #8C2F62
tetradic
#628C2F #2F8C88 #592F8C #8C2F33
square
#628C2F #2F8C88 #592F8C #8C2F33
split-complementary
#628C2F #2F338C #882F8C
monochromatic
#223010 #425E20 #628C2F #82BA3E #A0CD69

Accessibility & contrast

On white

3.95
#628C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#628C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628C2F
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628C2F#FFFFFF#000000##000000
##628C2F1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928223
Deuteranopia (green-blind)
#8C7F36
Tritanopia (blue-blind)
#648679
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628c2f;
/* rgb */ color: rgb(98, 140, 47);
/* oklch */ color: oklch(58.9% 0.131 130.3);
Tailwind
colors: {
  custom: {
    50: '#92ae6c',
    500: '#628c2f',
    950: '#000000',
  },
}
SCSS
$custom: #628c2f;
$custom-light: #92ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#628c2f",
  "rgb": {
    "r": 98,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 87.097,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.5894,
    "c": 0.1309,
    "h": 130.3
  },
  "luminance": 0.21558
}

Semantic roles & 50–950 ramp

primary
#628C2F
secondary
#8863B4
accent
#4FD98D
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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