#628A22#628A22

#628A22 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.3% C 0.137 H 128.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#628A22
RGBrgb(98, 138, 34)
HSLhsl(83, 60%, 34%)
HSVhsv(83, 75%, 54%)
CMYKcmyk(29%, 0%, 75.4%, 45.9%)
CIE-LABlab(52.83, -30.03, 48.09)
CIE-LCHlch(52.83, 56.70, 121.99°)
OKLaboklab(58.32% -0.0858 0.1074)
OKLCHoklch(58.32% 0.137 128.6)
XYZxyz(14.4142, 20.8888, 4.7856)
Luminance0.2089 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628A22 #4A228A
analogous
#8A7E22 #628A22 #2E8A22
triadic
#628A22 #22628A #8A2262
tetradic
#628A22 #228A7E #4A228A #8A222E
square
#628A22 #228A7E #4A228A #8A222E
split-complementary
#628A22 #222E8A #7E228A
monochromatic
#1C280A #3F5916 #628A22 #85BB2E #A2D452

Accessibility & contrast

On white

4.06
#628A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#628A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628A22
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628A22#FFFFFF#000000##000000
##628A221.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#8B7D2C
Tritanopia (blue-blind)
#658476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #628a22;
/* rgb */ color: rgb(98, 138, 34);
/* oklch */ color: oklch(58.3% 0.137 128.6);
Tailwind
colors: {
  custom: {
    50: '#92ac65',
    500: '#628a22',
    950: '#000000',
  },
}
SCSS
$custom: #628a22;
$custom-light: #92ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#628a22",
  "rgb": {
    "r": 98,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 83.077,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58318,
    "c": 0.13747,
    "h": 128.6
  },
  "luminance": 0.20889
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #628A22

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

Preview Lab → · Contrast checker → · Palette generator →

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