#628D27#628D27

#628D27 is a mid, vivid yellow-green. Relative luminance 0.218; OKLCH L 59.1% C 0.138 H 129.8°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#628D27
RGBrgb(98, 141, 39)
HSLhsl(85, 57%, 35%)
HSVhsv(85, 72%, 55%)
CMYKcmyk(30.5%, 0%, 72.3%, 44.7%)
CIE-LABlab(53.81, -31.12, 47.15)
CIE-LCHlch(53.81, 56.50, 123.42°)
OKLaboklab(59.13% -0.0884 0.1062)
OKLCHoklch(59.13% 0.138 129.8)
XYZxyz(14.9280, 21.7925, 5.3389)
Luminance0.2179 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D27 #52278D
analogous
#8D8527 #628D27 #2F8D27
triadic
#628D27 #27628D #8D2762
tetradic
#628D27 #278D85 #52278D #8D272F
square
#628D27 #278D85 #52278D #8D272F
split-complementary
#628D27 #272F8D #85278D
monochromatic
#1F2D0C #415D1A #628D27 #83BD34 #A0D25C

Accessibility & contrast

On white

3.92
#628D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#628D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628D27
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628D27#FFFFFF#000000##000000
##628D271.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948316
Deuteranopia (green-blind)
#8E8030
Tritanopia (blue-blind)
#658779
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628d27;
/* rgb */ color: rgb(98, 141, 39);
/* oklch */ color: oklch(59.1% 0.138 129.8);
Tailwind
colors: {
  custom: {
    50: '#92ae68',
    500: '#628d27',
    950: '#000000',
  },
}
SCSS
$custom: #628d27;
$custom-light: #92ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#628d27",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 85.294,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59125,
    "c": 0.13817,
    "h": 129.8
  },
  "luminance": 0.21793
}

Semantic roles & 50–950 ramp

primary
#628D27
secondary
#8059B7
accent
#48E088
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628D27

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

Preview Lab → · Contrast checker → · Palette generator →

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