#628C21#628C21

#628C21 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.8% C 0.141 H 129.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#628C21
RGBrgb(98, 140, 33)
HSLhsl(84, 62%, 34%)
HSVhsv(84, 76%, 55%)
CMYKcmyk(30%, 0%, 76.4%, 45.1%)
CIE-LABlab(53.45, -31.04, 49.06)
CIE-LCHlch(53.45, 58.05, 122.32°)
OKLaboklab(58.82% -0.0886 0.1093)
OKLCHoklch(58.82% 0.141 129.1)
XYZxyz(14.6896, 21.4622, 4.8072)
Luminance0.2146 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628C21 #4B218C
analogous
#8C8121 #628C21 #2D8C21
triadic
#628C21 #21628C #8C2162
tetradic
#628C21 #218C81 #4B218C #8C212D
square
#628C21 #218C81 #4B218C #8C212D
split-complementary
#628C21 #212D8C #81218C
monochromatic
#1D290A #3F5A15 #628C21 #85BE2D #A2D651

Accessibility & contrast

On white

3.97
#628C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#628C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628C21
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628C21#FFFFFF#000000##000000
##628C211.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820A
Deuteranopia (green-blind)
#8D7F2B
Tritanopia (blue-blind)
#658678
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628c21;
/* rgb */ color: rgb(98, 140, 33);
/* oklch */ color: oklch(58.8% 0.141 129.1);
Tailwind
colors: {
  custom: {
    50: '#92ae65',
    500: '#628c21',
    950: '#000000',
  },
}
SCSS
$custom: #628c21;
$custom-light: #92ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#628c21",
  "rgb": {
    "r": 98,
    "g": 140,
    "b": 33
  },
  "hsl": {
    "h": 83.551,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58824,
    "c": 0.14069,
    "h": 129.1
  },
  "luminance": 0.21463
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #628C21

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

Preview Lab → · Contrast checker → · Palette generator →

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