#628B21#628B21

#628B21 is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.6% C 0.139 H 128.8°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#628B21
RGBrgb(98, 139, 33)
HSLhsl(83, 62%, 34%)
HSVhsv(83, 76%, 55%)
CMYKcmyk(29.5%, 0%, 76.3%, 45.5%)
CIE-LABlab(53.14, -30.57, 48.75)
CIE-LCHlch(53.14, 57.54, 122.09°)
OKLaboklab(58.57% -0.0874 0.1086)
OKLCHoklch(58.57% 0.139 128.8)
XYZxyz(14.5441, 21.1713, 4.7587)
Luminance0.2117 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628B21 #4A218B
analogous
#8B7F21 #628B21 #2D8B21
triadic
#628B21 #21628B #8B2162
tetradic
#628B21 #218B7F #4A218B #8B212D
square
#628B21 #218B7F #4A218B #8B212D
split-complementary
#628B21 #212D8B #7F218B
monochromatic
#1C280A #3F5A15 #628B21 #85BC2D #A2D651

Accessibility & contrast

On white

4.01
#628B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#628B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628B21
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628B21#FFFFFF#000000##000000
##628B211.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810A
Deuteranopia (green-blind)
#8C7E2B
Tritanopia (blue-blind)
#658577
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #628b21;
/* rgb */ color: rgb(98, 139, 33);
/* oklch */ color: oklch(58.6% 0.139 128.8);
Tailwind
colors: {
  custom: {
    50: '#92ad65',
    500: '#628b21',
    950: '#000000',
  },
}
SCSS
$custom: #628b21;
$custom-light: #92ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#628b21",
  "rgb": {
    "r": 98,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 83.208,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58568,
    "c": 0.13938,
    "h": 128.8
  },
  "luminance": 0.21172
}

Semantic roles & 50–950 ramp

primary
#628B21
secondary
#784FB9
accent
#43E582
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628B21

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

Preview Lab → · Contrast checker → · Palette generator →

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