#628B20#628B20

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

Color values

HEX#628B20
RGBrgb(98, 139, 32)
HSLhsl(83, 63%, 34%)
HSVhsv(83, 77%, 55%)
CMYKcmyk(29.5%, 0%, 77%, 45.5%)
CIE-LABlab(53.13, -30.63, 49.10)
CIE-LCHlch(53.13, 57.87, 121.95°)
OKLaboklab(58.56% -0.0876 0.1092)
OKLCHoklch(58.56% 0.14 128.7)
XYZxyz(14.5303, 21.1658, 4.6861)
Luminance0.2117 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628B20 #49208B
analogous
#8B7E20 #628B20 #2C8B20
triadic
#628B20 #20628B #8B2062
tetradic
#628B20 #208B7E #49208B #8B202C
square
#628B20 #208B7E #49208B #8B202C
split-complementary
#628B20 #202C8B #7E208B
monochromatic
#1C2809 #3F5915 #628B20 #85BD2B #A3D64F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628B20#FFFFFF#000000##000000
##628B201.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)
#928108
Deuteranopia (green-blind)
#8C7E2A
Tritanopia (blue-blind)
#658577
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #628b20;
/* rgb */ color: rgb(98, 139, 32);
/* oklch */ color: oklch(58.6% 0.140 128.7);
Tailwind
colors: {
  custom: {
    50: '#92ad64',
    500: '#628b20',
    950: '#000000',
  },
}
SCSS
$custom: #628b20;
$custom-light: #92ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#628b20",
  "rgb": {
    "r": 98,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 82.991,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58561,
    "c": 0.13998,
    "h": 128.7
  },
  "luminance": 0.21166
}

Semantic roles & 50–950 ramp

primary
#628B20
secondary
#774DBA
accent
#42E681
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628B20

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

Preview Lab → · Contrast checker → · Palette generator →

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