#628F2D#628F2D

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

Color values

HEX#628F2D
RGBrgb(98, 143, 45)
HSLhsl(88, 52%, 37%)
HSVhsv(88, 69%, 56%)
CMYKcmyk(31.5%, 0%, 68.5%, 43.9%)
CIE-LABlab(54.48, -31.61, 45.40)
CIE-LCHlch(54.48, 55.32, 124.85°)
OKLaboklab(59.69% -0.0892 0.1034)
OKLCHoklch(59.69% 0.137 130.8)
XYZxyz(15.3330, 22.4306, 6.0038)
Luminance0.2243 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628F2D #5A2D8F
analogous
#8F8B2D #628F2D #318F2D
triadic
#628F2D #2D628F #8F2D62
tetradic
#628F2D #2D8F8B #5A2D8F #8F2D31
square
#628F2D #2D8F8B #5A2D8F #8F2D31
split-complementary
#628F2D #2D318F #8B2D8F
monochromatic
#223210 #42601E #628F2D #82BE3C #9FCF67

Accessibility & contrast

On white

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

On black

5.49
#628F2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628F2D
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628F2D#FFFFFF#000000##000000
##628F2D1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841F
Deuteranopia (green-blind)
#8F8135
Tritanopia (blue-blind)
#64897B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #628f2d;
/* rgb */ color: rgb(98, 143, 45);
/* oklch */ color: oklch(59.7% 0.137 130.8);
Tailwind
colors: {
  custom: {
    50: '#92b06b',
    500: '#628f2d',
    950: '#000000',
  },
}
SCSS
$custom: #628f2d;
$custom-light: #92b06b;
$custom-dark: #000000;
JSON
{
  "hex": "#628f2d",
  "rgb": {
    "r": 98,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 87.551,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.59688,
    "c": 0.13657,
    "h": 130.8
  },
  "luminance": 0.22431
}

Semantic roles & 50–950 ramp

primary
#628F2D
secondary
#8862B6
accent
#4CDC8E
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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