#628D2F#628D2F

#628D2F is a mid, vivid yellow-green. Relative luminance 0.219; OKLCH L 59.2% C 0.132 H 130.6°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#628D2F
RGBrgb(98, 141, 47)
HSLhsl(87, 50%, 37%)
HSVhsv(87, 67%, 55%)
CMYKcmyk(30.5%, 0%, 66.7%, 44.7%)
CIE-LABlab(53.87, -30.51, 43.88)
CIE-LCHlch(53.87, 53.45, 124.81°)
OKLaboklab(59.2% -0.086 0.1005)
OKLCHoklch(59.2% 0.132 130.6)
XYZxyz(15.0748, 21.8512, 6.1122)
Luminance0.2185 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D2F #5A2F8D
analogous
#8D892F #628D2F #338D2F
triadic
#628D2F #2F628D #8D2F62
tetradic
#628D2F #2F8D89 #5A2F8D #8D2F33
square
#628D2F #2F8D89 #5A2F8D #8D2F33
split-complementary
#628D2F #2F338D #892F8D
monochromatic
#223110 #425F20 #628D2F #82BB3E #9FCD69

Accessibility & contrast

On white

3.91
#628D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#628D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628D2F
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628D2F#FFFFFF#000000##000000
##628D2F1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938323
Deuteranopia (green-blind)
#8D8036
Tritanopia (blue-blind)
#64877A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628d2f;
/* rgb */ color: rgb(98, 141, 47);
/* oklch */ color: oklch(59.2% 0.132 130.6);
Tailwind
colors: {
  custom: {
    50: '#92ae6c',
    500: '#628d2f',
    950: '#000000',
  },
}
SCSS
$custom: #628d2f;
$custom-light: #92ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#628d2f",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 87.447,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.59196,
    "c": 0.13228,
    "h": 130.6
  },
  "luminance": 0.21852
}

Semantic roles & 50–950 ramp

primary
#628D2F
secondary
#8864B4
accent
#4EDA8E
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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