#628F2B#628F2B

#628F2B is a mid, vivid yellow-green. Relative luminance 0.224; OKLCH L 59.7% C 0.138 H 130.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#628F2B
RGBrgb(98, 143, 43)
HSLhsl(87, 54%, 36%)
HSVhsv(87, 70%, 56%)
CMYKcmyk(31.5%, 0%, 69.9%, 43.9%)
CIE-LABlab(54.47, -31.77, 46.21)
CIE-LCHlch(54.47, 56.08, 124.50°)
OKLaboklab(59.67% -0.0898 0.1048)
OKLCHoklch(59.67% 0.138 130.6)
XYZxyz(15.2954, 22.4155, 5.8058)
Luminance0.2242 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628F2B #582B8F
analogous
#8F8A2B #628F2B #308F2B
triadic
#628F2B #2B628F #8F2B62
tetradic
#628F2B #2B8F8A #582B8F #8F2B30
square
#628F2B #2B8F8A #582B8F #8F2B30
split-complementary
#628F2B #2B308F #8A2B8F
monochromatic
#22310F #42601D #628F2B #82BE39 #A0D064

Accessibility & contrast

On white

3.83
#628F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#628F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628F2B
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628F2B#FFFFFF#000000##000000
##628F2B1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#96841C
Deuteranopia (green-blind)
#8F8134
Tritanopia (blue-blind)
#64897B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #628f2b;
/* rgb */ color: rgb(98, 143, 43);
/* oklch */ color: oklch(59.7% 0.138 130.6);
Tailwind
colors: {
  custom: {
    50: '#92b06a',
    500: '#628f2b',
    950: '#000000',
  },
}
SCSS
$custom: #628f2b;
$custom-light: #92b06a;
$custom-dark: #000000;
JSON
{
  "hex": "#628f2b",
  "rgb": {
    "r": 98,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 87,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.5967,
    "c": 0.13804,
    "h": 130.6
  },
  "luminance": 0.22416
}

Semantic roles & 50–950 ramp

primary
#628F2B
secondary
#875FB7
accent
#4BDD8D
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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