#628D22#628D22

#628D22 is a mid, vivid yellow-green. Relative luminance 0.218; OKLCH L 59.1% C 0.141 H 129.4°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#628D22
RGBrgb(98, 141, 34)
HSLhsl(84, 61%, 34%)
HSVhsv(84, 76%, 55%)
CMYKcmyk(30.5%, 0%, 75.9%, 44.7%)
CIE-LABlab(53.77, -31.44, 49.01)
CIE-LCHlch(53.77, 58.23, 122.68°)
OKLaboklab(59.09% -0.0897 0.1093)
OKLCHoklch(59.09% 0.141 129.4)
XYZxyz(14.8506, 21.7615, 4.9310)
Luminance0.2176 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D22 #4D228D
analogous
#8D8322 #628D22 #2D8D22
triadic
#628D22 #22628D #8D2262
tetradic
#628D22 #228D83 #4D228D #8D222D
square
#628D22 #228D83 #4D228D #8D222D
split-complementary
#628D22 #222D8D #83228D
monochromatic
#1D2A0A #405C16 #628D22 #84BE2E #A1D654

Accessibility & contrast

On white

3.92
#628D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#628D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628D22
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628D22#FFFFFF#000000##000000
##628D221.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820C
Deuteranopia (green-blind)
#8E802C
Tritanopia (blue-blind)
#658779
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628d22;
/* rgb */ color: rgb(98, 141, 34);
/* oklch */ color: oklch(59.1% 0.141 129.4);
Tailwind
colors: {
  custom: {
    50: '#92ae65',
    500: '#628d22',
    950: '#000000',
  },
}
SCSS
$custom: #628d22;
$custom-light: #92ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#628d22",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 84.112,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59087,
    "c": 0.14138,
    "h": 129.4
  },
  "luminance": 0.21762
}

Semantic roles & 50–950 ramp

primary
#628D22
secondary
#7B51B9
accent
#44E484
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628D22

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

Preview Lab → · Contrast checker → · Palette generator →

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