#628A2D#628A2D

#628A2D is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.4% C 0.130 H 129.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#628A2D
RGBrgb(98, 138, 45)
HSLhsl(86, 51%, 36%)
HSVhsv(86, 67%, 54%)
CMYKcmyk(29%, 0%, 67.4%, 45.9%)
CIE-LABlab(52.91, -29.25, 43.73)
CIE-LCHlch(52.91, 52.61, 123.77°)
OKLaboklab(58.41% -0.0827 0.0999)
OKLCHoklch(58.41% 0.13 129.6)
XYZxyz(14.5991, 20.9627, 5.7591)
Luminance0.2096 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628A2D #552D8A
analogous
#8A832D #628A2D #338A2D
triadic
#628A2D #2D628A #8A2D62
tetradic
#628A2D #2D8A83 #552D8A #8A2D33
square
#628A2D #2D8A83 #552D8A #8A2D33
split-complementary
#628A2D #2D338A #832D8A
monochromatic
#202E0F #415C1E #628A2D #83B83C #A0CD65

Accessibility & contrast

On white

4.04
#628A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#628A2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628A2D
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628A2D#FFFFFF#000000##000000
##628A2D1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#908021
Deuteranopia (green-blind)
#8B7D34
Tritanopia (blue-blind)
#658477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #628a2d;
/* rgb */ color: rgb(98, 138, 45);
/* oklch */ color: oklch(58.4% 0.130 129.6);
Tailwind
colors: {
  custom: {
    50: '#92ac6b',
    500: '#628a2d',
    950: '#000000',
  },
}
SCSS
$custom: #628a2d;
$custom-light: #92ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#628a2d",
  "rgb": {
    "r": 98,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 85.806,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.5841,
    "c": 0.12972,
    "h": 129.6
  },
  "luminance": 0.20963
}

Semantic roles & 50–950 ramp

primary
#628A2D
secondary
#8460B3
accent
#4DDA8A
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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