#628B31#628B31

#628B31 is a mid, vivid yellow-green. Relative luminance 0.213; OKLCH L 58.7% C 0.128 H 130.3°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#628B31
RGBrgb(98, 139, 49)
HSLhsl(87, 48%, 37%)
HSVhsv(87, 65%, 55%)
CMYKcmyk(29.5%, 0%, 64.7%, 45.5%)
CIE-LABlab(53.26, -29.39, 42.33)
CIE-LCHlch(53.26, 51.53, 124.77°)
OKLaboklab(58.71% -0.0828 0.0975)
OKLCHoklch(58.71% 0.128 130.3)
XYZxyz(14.8239, 21.2832, 6.2322)
Luminance0.2128 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628B31 #5A318B
analogous
#8B8731 #628B31 #358B31
triadic
#628B31 #31628B #8B3162
tetradic
#628B31 #318B87 #5A318B #8B3135
square
#628B31 #318B87 #5A318B #8B3135
split-complementary
#628B31 #31358B #87318B
monochromatic
#223111 #425E21 #628B31 #82B841 #9FCB6B

Accessibility & contrast

On white

3.99
#628B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#628B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628B31
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628B31#FFFFFF#000000##000000
##628B311.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918126
Deuteranopia (green-blind)
#8B7E38
Tritanopia (blue-blind)
#648578
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #628b31;
/* rgb */ color: rgb(98, 139, 49);
/* oklch */ color: oklch(58.7% 0.128 130.3);
Tailwind
colors: {
  custom: {
    50: '#92ad6d',
    500: '#628b31',
    950: '#000000',
  },
}
SCSS
$custom: #628b31;
$custom-light: #92ad6d;
$custom-dark: #000000;
JSON
{
  "hex": "#628b31",
  "rgb": {
    "r": 98,
    "g": 139,
    "b": 49
  },
  "hsl": {
    "h": 87.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.58705,
    "c": 0.12788,
    "h": 130.3
  },
  "luminance": 0.21284
}

Semantic roles & 50–950 ramp

primary
#628B31
secondary
#8865B2
accent
#50D78E
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628B31

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

Preview Lab → · Contrast checker → · Palette generator →

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