#628226#628226

#628226 is a mid, vivid yellow-green. Relative luminance 0.187; OKLCH L 56.3% C 0.124 H 126.7°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#628226
RGBrgb(98, 130, 38)
HSLhsl(81, 55%, 33%)
HSVhsv(81, 71%, 51%)
CMYKcmyk(24.6%, 0%, 70.8%, 49%)
CIE-LABlab(50.34, -25.90, 44.02)
CIE-LCHlch(50.34, 51.08, 120.47°)
OKLaboklab(56.31% -0.0742 0.0995)
OKLCHoklch(56.31% 0.124 126.7)
XYZxyz(13.3695, 18.7016, 4.7388)
Luminance0.1870 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628226 #462682
analogous
#827426 #628226 #348226
triadic
#628226 #266282 #822662
tetradic
#628226 #268274 #462682 #822634
square
#628226 #268274 #462682 #822634
split-complementary
#628226 #263482 #742682
monochromatic
#1B230A #3E5318 #628226 #86B134 #A3CD55

Accessibility & contrast

On white

4.43
#628226 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#628226 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628226
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628226#FFFFFF#000000##000000
##6282261.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897918
Deuteranopia (green-blind)
#84772E
Tritanopia (blue-blind)
#667C70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #628226;
/* rgb */ color: rgb(98, 130, 38);
/* oklch */ color: oklch(56.3% 0.124 126.7);
Tailwind
colors: {
  custom: {
    50: '#92a666',
    500: '#628226',
    950: '#000000',
  },
}
SCSS
$custom: #628226;
$custom-light: #92a666;
$custom-dark: #000000;
JSON
{
  "hex": "#628226",
  "rgb": {
    "r": 98,
    "g": 130,
    "b": 38
  },
  "hsl": {
    "h": 80.87,
    "s": 54.762,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56305,
    "c": 0.1241,
    "h": 126.7
  },
  "luminance": 0.18702
}

Semantic roles & 50–950 ramp

primary
#628226
secondary
#7352B2
accent
#4ADE7D
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #628226

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

Preview Lab → · Contrast checker → · Palette generator →

#628226 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva