#628D25#628D25

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

Color values

HEX#628D25
RGBrgb(98, 141, 37)
HSLhsl(85, 58%, 35%)
HSVhsv(85, 74%, 55%)
CMYKcmyk(30.5%, 0%, 73.8%, 44.7%)
CIE-LABlab(53.79, -31.26, 47.91)
CIE-LCHlch(53.79, 57.21, 123.12°)
OKLaboklab(59.11% -0.0889 0.1075)
OKLCHoklch(59.11% 0.14 129.6)
XYZxyz(14.8957, 21.7796, 5.1690)
Luminance0.2178 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D25 #50258D
analogous
#8D8425 #628D25 #2E8D25
triadic
#628D25 #25628D #8D2562
tetradic
#628D25 #258D84 #50258D #8D252E
square
#628D25 #258D84 #50258D #8D252E
split-complementary
#628D25 #252E8D #84258D
monochromatic
#1F2C0C #405D18 #628D25 #84BD32 #A1D359

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628D25#FFFFFF#000000##000000
##628D251.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)
#948312
Deuteranopia (green-blind)
#8E802F
Tritanopia (blue-blind)
#658779
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628d25;
/* rgb */ color: rgb(98, 141, 37);
/* oklch */ color: oklch(59.1% 0.140 129.6);
Tailwind
colors: {
  custom: {
    50: '#92ae67',
    500: '#628d25',
    950: '#000000',
  },
}
SCSS
$custom: #628d25;
$custom-light: #92ae67;
$custom-dark: #000000;
JSON
{
  "hex": "#628d25",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 37
  },
  "hsl": {
    "h": 84.808,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59109,
    "c": 0.1395,
    "h": 129.6
  },
  "luminance": 0.2178
}

Semantic roles & 50–950 ramp

primary
#628D25
secondary
#7E56B8
accent
#46E286
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628D25

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

Preview Lab → · Contrast checker → · Palette generator →

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