#628A2F#628A2F

#628A2F is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.4% C 0.128 H 129.9°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#628A2F
RGBrgb(98, 138, 47)
HSLhsl(86, 49%, 36%)
HSVhsv(86, 66%, 54%)
CMYKcmyk(29%, 0%, 65.9%, 45.9%)
CIE-LABlab(52.93, -29.08, 42.87)
CIE-LCHlch(52.93, 51.80, 124.15°)
OKLaboklab(58.43% -0.0821 0.0984)
OKLCHoklch(58.43% 0.128 129.9)
XYZxyz(14.6385, 20.9785, 5.9668)
Luminance0.2098 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628A2F #572F8A
analogous
#8A852F #628A2F #358A2F
triadic
#628A2F #2F628A #8A2F62
tetradic
#628A2F #2F8A85 #572F8A #8A2F35
square
#628A2F #2F8A85 #572F8A #8A2F35
split-complementary
#628A2F #2F358A #852F8A
monochromatic
#212F10 #425C1F #628A2F #82B83F #A0CC68

Accessibility & contrast

On white

4.04
#628A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#628A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628A2F
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628A2F#FFFFFF#000000##000000
##628A2F1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#908023
Deuteranopia (green-blind)
#8B7D36
Tritanopia (blue-blind)
#648477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #628a2f;
/* rgb */ color: rgb(98, 138, 47);
/* oklch */ color: oklch(58.4% 0.128 129.9);
Tailwind
colors: {
  custom: {
    50: '#92ac6c',
    500: '#628a2f',
    950: '#000000',
  },
}
SCSS
$custom: #628a2f;
$custom-light: #92ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#628a2f",
  "rgb": {
    "r": 98,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 86.374,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5843,
    "c": 0.12812,
    "h": 129.9
  },
  "luminance": 0.20979
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #628A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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