#628D31#628D31

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

Color values

HEX#628D31
RGBrgb(98, 141, 49)
HSLhsl(88, 48%, 37%)
HSVhsv(88, 65%, 55%)
CMYKcmyk(30.5%, 0%, 65.2%, 44.7%)
CIE-LABlab(53.89, -30.34, 43.02)
CIE-LCHlch(53.89, 52.64, 125.19°)
OKLaboklab(59.22% -0.0854 0.0989)
OKLCHoklch(59.22% 0.131 130.8)
XYZxyz(15.1161, 21.8677, 6.3296)
Luminance0.2187 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D31 #5C318D
analogous
#8D8A31 #628D31 #348D31
triadic
#628D31 #31628D #8D3162
tetradic
#628D31 #318D8A #5C318D #8D3134
square
#628D31 #318D8A #5C318D #8D3134
split-complementary
#628D31 #31348D #8A318D
monochromatic
#233211 #426021 #628D31 #82BA41 #9FCC6C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628D31#FFFFFF#000000##000000
##628D311.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)
#938326
Deuteranopia (green-blind)
#8D8038
Tritanopia (blue-blind)
#64877A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628d31;
/* rgb */ color: rgb(98, 141, 49);
/* oklch */ color: oklch(59.2% 0.131 130.8);
Tailwind
colors: {
  custom: {
    50: '#92ae6d',
    500: '#628d31',
    950: '#000000',
  },
}
SCSS
$custom: #628d31;
$custom-light: #92ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#628d31",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 88.043,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.59216,
    "c": 0.13067,
    "h": 130.8
  },
  "luminance": 0.21868
}

Semantic roles & 50–950 ramp

primary
#628D31
secondary
#8A66B4
accent
#50D88F
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628D31

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

Preview Lab → · Contrast checker → · Palette generator →

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