#628A21#628A21

#628A21 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.3% C 0.138 H 128.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#628A21
RGBrgb(98, 138, 33)
HSLhsl(83, 61%, 34%)
HSVhsv(83, 76%, 54%)
CMYKcmyk(29%, 0%, 76.1%, 45.9%)
CIE-LABlab(52.82, -30.09, 48.45)
CIE-LCHlch(52.82, 57.03, 121.85°)
OKLaboklab(58.31% -0.0861 0.108)
OKLCHoklch(58.31% 0.138 128.6)
XYZxyz(14.4000, 20.8831, 4.7107)
Luminance0.2088 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628A21 #49218A
analogous
#8A7D21 #628A21 #2D8A21
triadic
#628A21 #21628A #8A2162
tetradic
#628A21 #218A7D #49218A #8A212D
square
#628A21 #218A7D #49218A #8A212D
split-complementary
#628A21 #212D8A #7D218A
monochromatic
#1C2709 #3F5915 #628A21 #85BB2D #A3D550

Accessibility & contrast

On white

4.06
#628A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#628A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628A21
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628A21#FFFFFF#000000##000000
##628A211.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800B
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#658476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #628a21;
/* rgb */ color: rgb(98, 138, 33);
/* oklch */ color: oklch(58.3% 0.138 128.6);
Tailwind
colors: {
  custom: {
    50: '#92ac64',
    500: '#628a21',
    950: '#000000',
  },
}
SCSS
$custom: #628a21;
$custom-light: #92ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#628a21",
  "rgb": {
    "r": 98,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 82.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58311,
    "c": 0.13808,
    "h": 128.6
  },
  "luminance": 0.20883
}

Semantic roles & 50–950 ramp

primary
#628A21
secondary
#774EB9
accent
#43E581
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628A21

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

Preview Lab → · Contrast checker → · Palette generator →

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