#628828#628828

#628828 is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.9% C 0.131 H 128.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#628828
RGBrgb(98, 136, 40)
HSLhsl(84, 55%, 35%)
HSVhsv(84, 71%, 53%)
CMYKcmyk(27.9%, 0%, 70.6%, 46.7%)
CIE-LABlab(52.24, -28.68, 45.15)
CIE-LCHlch(52.24, 53.49, 122.42°)
OKLaboklab(57.85% -0.0816 0.1022)
OKLCHoklch(57.85% 0.131 128.6)
XYZxyz(14.2241, 20.3579, 5.1871)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628828 #4E2888
analogous
#887E28 #628828 #328828
triadic
#628828 #286288 #882862
tetradic
#628828 #28887E #4E2888 #882832
square
#628828 #28887E #4E2888 #882832
split-complementary
#628828 #283288 #7E2888
monochromatic
#1E290C #40591A #628828 #84B736 #A1CF5B

Accessibility & contrast

On white

4.14
#628828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#628828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628828
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628828#FFFFFF#000000##000000
##6288281.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E19
Deuteranopia (green-blind)
#897C30
Tritanopia (blue-blind)
#658275
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #628828;
/* rgb */ color: rgb(98, 136, 40);
/* oklch */ color: oklch(57.9% 0.131 128.6);
Tailwind
colors: {
  custom: {
    50: '#92ab68',
    500: '#628828',
    950: '#000000',
  },
}
SCSS
$custom: #628828;
$custom-light: #92ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#628828",
  "rgb": {
    "r": 98,
    "g": 136,
    "b": 40
  },
  "hsl": {
    "h": 83.75,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57854,
    "c": 0.13076,
    "h": 128.6
  },
  "luminance": 0.20358
}

Semantic roles & 50–950 ramp

primary
#628828
secondary
#7C58B4
accent
#4ADE84
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628828

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

Preview Lab → · Contrast checker → · Palette generator →

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