#628B22#628B22

#628B22 is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.6% C 0.139 H 128.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#628B22
RGBrgb(98, 139, 34)
HSLhsl(83, 61%, 34%)
HSVhsv(83, 76%, 55%)
CMYKcmyk(29.5%, 0%, 75.5%, 45.5%)
CIE-LABlab(53.14, -30.51, 48.40)
CIE-LCHlch(53.14, 57.21, 122.23°)
OKLaboklab(58.58% -0.0871 0.108)
OKLCHoklch(58.58% 0.139 128.9)
XYZxyz(14.5583, 21.1770, 4.8336)
Luminance0.2118 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628B22 #4B228B
analogous
#8B8022 #628B22 #2D8B22
triadic
#628B22 #22628B #8B2262
tetradic
#628B22 #228B80 #4B228B #8B222D
square
#628B22 #228B80 #4B228B #8B222D
split-complementary
#628B22 #222D8B #80228B
monochromatic
#1D290A #3F5A16 #628B22 #85BC2E #A2D553

Accessibility & contrast

On white

4.01
#628B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#628B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628B22
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628B22#FFFFFF#000000##000000
##628B221.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810D
Deuteranopia (green-blind)
#8C7E2C
Tritanopia (blue-blind)
#658577
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #628b22;
/* rgb */ color: rgb(98, 139, 34);
/* oklch */ color: oklch(58.6% 0.139 128.9);
Tailwind
colors: {
  custom: {
    50: '#92ad65',
    500: '#628b22',
    950: '#000000',
  },
}
SCSS
$custom: #628b22;
$custom-light: #92ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#628b22",
  "rgb": {
    "r": 98,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 83.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58575,
    "c": 0.13877,
    "h": 128.9
  },
  "luminance": 0.21177
}

Semantic roles & 50–950 ramp

primary
#628B22
secondary
#7950B8
accent
#44E482
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628B22

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

Preview Lab → · Contrast checker → · Palette generator →

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