#628031#628031

#628031 is a mid, moderate yellow-green. Relative luminance 0.183; OKLCH L 55.9% C 0.112 H 127.2°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#628031
RGBrgb(98, 128, 49)
HSLhsl(83, 45%, 35%)
HSVhsv(83, 62%, 50%)
CMYKcmyk(23.4%, 0%, 61.7%, 49.8%)
CIE-LABlab(49.81, -24.00, 38.52)
CIE-LCHlch(49.81, 45.38, 121.92°)
OKLaboklab(55.91% -0.0679 0.0894)
OKLCHoklch(55.91% 0.112 127.2)
XYZxyz(13.3105, 18.2565, 5.7277)
Luminance0.1826 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628031 #4F3180
analogous
#807731 #628031 #3A8031
triadic
#628031 #316280 #803162
tetradic
#628031 #318077 #4F3180 #80313A
square
#628031 #318077 #4F3180 #80313A
split-complementary
#628031 #313A80 #773180
monochromatic
#1E270F #405420 #628031 #84AC42 #A1C567

Accessibility & contrast

On white

4.51
#628031 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#628031 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628031
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628031#FFFFFF#000000##000000
##6280311.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#867828
Deuteranopia (green-blind)
#827637
Tritanopia (blue-blind)
#657A6F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #628031;
/* rgb */ color: rgb(98, 128, 49);
/* oklch */ color: oklch(55.9% 0.112 127.2);
Tailwind
colors: {
  custom: {
    50: '#91a56c',
    500: '#628031',
    950: '#000000',
  },
}
SCSS
$custom: #628031;
$custom-light: #91a56c;
$custom-dark: #000000;
JSON
{
  "hex": "#628031",
  "rgb": {
    "r": 98,
    "g": 128,
    "b": 49
  },
  "hsl": {
    "h": 82.785,
    "s": 44.633,
    "l": 34.706
  },
  "oklch": {
    "l": 0.55907,
    "c": 0.11225,
    "h": 127.2
  },
  "luminance": 0.18257
}

Semantic roles & 50–950 ramp

primary
#628031
secondary
#7D61AC
accent
#53D484
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D0F07
muted
#7E7F7A

Preview Lab

Preview with #628031

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

Preview Lab → · Contrast checker → · Palette generator →

#628031 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva