#628D2B#628D2B

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

Color values

HEX#628D2B
RGBrgb(98, 141, 43)
HSLhsl(86, 53%, 36%)
HSVhsv(86, 70%, 55%)
CMYKcmyk(30.5%, 0%, 69.5%, 44.7%)
CIE-LABlab(53.84, -30.83, 45.56)
CIE-LCHlch(53.84, 55.01, 124.08°)
OKLaboklab(59.16% -0.0872 0.1035)
OKLCHoklch(59.16% 0.135 130.1)
XYZxyz(14.9978, 21.8204, 5.7066)
Luminance0.2182 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D2B #562B8D
analogous
#8D872B #628D2B #318D2B
triadic
#628D2B #2B628D #8D2B62
tetradic
#628D2B #2B8D87 #562B8D #8D2B31
square
#628D2B #2B8D87 #562B8D #8D2B31
split-complementary
#628D2B #2B318D #872B8D
monochromatic
#212F0E #415E1D #628D2B #83BC39 #A0CF63

Accessibility & contrast

On white

3.91
#628D2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##628D2B#FFFFFF#000000##000000
##628D2B1.003.915.365.36
#FFFFFF3.911.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831D
Deuteranopia (green-blind)
#8E8033
Tritanopia (blue-blind)
#648779
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628d2b;
/* rgb */ color: rgb(98, 141, 43);
/* oklch */ color: oklch(59.2% 0.135 130.1);
Tailwind
colors: {
  custom: {
    50: '#92ae6a',
    500: '#628d2b',
    950: '#000000',
  },
}
SCSS
$custom: #628d2b;
$custom-light: #92ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#628d2b",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 86.327,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59159,
    "c": 0.13534,
    "h": 130.1
  },
  "luminance": 0.21821
}

Semantic roles & 50–950 ramp

primary
#628D2B
secondary
#855EB6
accent
#4BDD8B
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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