#628C22#628C22

#628C22 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.8% C 0.140 H 129.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#628C22
RGBrgb(98, 140, 34)
HSLhsl(84, 61%, 34%)
HSVhsv(84, 76%, 55%)
CMYKcmyk(30%, 0%, 75.7%, 45.1%)
CIE-LABlab(53.46, -30.98, 48.70)
CIE-LCHlch(53.46, 57.72, 122.46°)
OKLaboklab(58.83% -0.0884 0.1087)
OKLCHoklch(58.83% 0.14 129.1)
XYZxyz(14.7038, 21.4679, 4.8821)
Luminance0.2147 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628C22 #4C228C
analogous
#8C8122 #628C22 #2D8C22
triadic
#628C22 #22628C #8C2262
tetradic
#628C22 #228C81 #4C228C #8C222D
square
#628C22 #228C81 #4C228C #8C222D
split-complementary
#628C22 #222D8C #81228C
monochromatic
#1D2A0A #405B16 #628C22 #84BD2E #A2D553

Accessibility & contrast

On white

3.97
#628C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#628C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628C22
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628C22#FFFFFF#000000##000000
##628C221.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820C
Deuteranopia (green-blind)
#8D7F2C
Tritanopia (blue-blind)
#658678
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628c22;
/* rgb */ color: rgb(98, 140, 34);
/* oklch */ color: oklch(58.8% 0.140 129.1);
Tailwind
colors: {
  custom: {
    50: '#92ae65',
    500: '#628c22',
    950: '#000000',
  },
}
SCSS
$custom: #628c22;
$custom-light: #92ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#628c22",
  "rgb": {
    "r": 98,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 83.774,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58831,
    "c": 0.14008,
    "h": 129.1
  },
  "luminance": 0.21468
}

Semantic roles & 50–950 ramp

primary
#628C22
secondary
#7A51B9
accent
#44E483
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628C22

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

Preview Lab → · Contrast checker → · Palette generator →

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