#628228#628228

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

Color values

HEX#628228
RGBrgb(98, 130, 40)
HSLhsl(81, 53%, 33%)
HSVhsv(81, 69%, 51%)
CMYKcmyk(24.6%, 0%, 69.2%, 49%)
CIE-LABlab(50.35, -25.75, 43.20)
CIE-LCHlch(50.35, 50.29, 120.80°)
OKLaboklab(56.32% -0.0736 0.0981)
OKLCHoklch(56.32% 0.123 126.9)
XYZxyz(13.4027, 18.7149, 4.9133)
Luminance0.1872 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628228 #482882
analogous
#827528 #628228 #358228
triadic
#628228 #286282 #822862
tetradic
#628228 #288275 #482882 #822835
square
#628228 #288275 #482882 #822835
split-complementary
#628228 #283582 #752882
monochromatic
#1B240B #3F531A #628228 #85B136 #A3CC59

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628228#FFFFFF#000000##000000
##6282281.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)
#89791B
Deuteranopia (green-blind)
#84772F
Tritanopia (blue-blind)
#667C70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #628228;
/* rgb */ color: rgb(98, 130, 40);
/* oklch */ color: oklch(56.3% 0.123 126.9);
Tailwind
colors: {
  custom: {
    50: '#91a667',
    500: '#628228',
    950: '#000000',
  },
}
SCSS
$custom: #628228;
$custom-light: #91a667;
$custom-dark: #000000;
JSON
{
  "hex": "#628228",
  "rgb": {
    "r": 98,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 81.333,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56323,
    "c": 0.1226,
    "h": 126.9
  },
  "luminance": 0.18715
}

Semantic roles & 50–950 ramp

primary
#628228
secondary
#7655B1
accent
#4BDC7F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #628228

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

Preview Lab → · Contrast checker → · Palette generator →

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