#628B2F#628B2F

#628B2F is a mid, vivid yellow-green. Relative luminance 0.213; OKLCH L 58.7% C 0.130 H 130.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#628B2F
RGBrgb(98, 139, 47)
HSLhsl(87, 49%, 36%)
HSVhsv(87, 66%, 55%)
CMYKcmyk(29.5%, 0%, 66.2%, 45.5%)
CIE-LABlab(53.24, -29.56, 43.21)
CIE-LCHlch(53.24, 52.35, 124.38°)
OKLaboklab(58.68% -0.0834 0.0991)
OKLCHoklch(58.68% 0.13 130.1)
XYZxyz(14.7826, 21.2667, 6.0148)
Luminance0.2127 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628B2F #582F8B
analogous
#8B862F #628B2F #348B2F
triadic
#628B2F #2F628B #8B2F62
tetradic
#628B2F #2F8B86 #582F8B #8B2F34
square
#628B2F #2F8B86 #582F8B #8B2F34
split-complementary
#628B2F #2F348B #862F8B
monochromatic
#223010 #425D20 #628B2F #82B93E #A0CC68

Accessibility & contrast

On white

4.00
#628B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#628B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628B2F
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628B2F#FFFFFF#000000##000000
##628B2F1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918123
Deuteranopia (green-blind)
#8C7E36
Tritanopia (blue-blind)
#648578
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #628b2f;
/* rgb */ color: rgb(98, 139, 47);
/* oklch */ color: oklch(58.7% 0.130 130.1);
Tailwind
colors: {
  custom: {
    50: '#92ad6c',
    500: '#628b2f',
    950: '#000000',
  },
}
SCSS
$custom: #628b2f;
$custom-light: #92ad6c;
$custom-dark: #000000;
JSON
{
  "hex": "#628b2f",
  "rgb": {
    "r": 98,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 86.739,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58685,
    "c": 0.12951,
    "h": 130.1
  },
  "luminance": 0.21267
}

Semantic roles & 50–950 ramp

primary
#628B2F
secondary
#8763B3
accent
#4FD98C
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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