#628F2F#628F2F

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

Color values

HEX#628F2F
RGBrgb(98, 143, 47)
HSLhsl(88, 51%, 37%)
HSVhsv(88, 67%, 56%)
CMYKcmyk(31.5%, 0%, 67.1%, 43.9%)
CIE-LABlab(54.50, -31.45, 44.56)
CIE-LCHlch(54.50, 54.54, 125.22°)
OKLaboklab(59.71% -0.0886 0.1019)
OKLCHoklch(59.71% 0.135 131)
XYZxyz(15.3724, 22.4463, 6.2114)
Luminance0.2245 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628F2F #5C2F8F
analogous
#8F8C2F #628F2F #328F2F
triadic
#628F2F #2F628F #8F2F62
tetradic
#628F2F #2F8F8C #5C2F8F #8F2F32
square
#628F2F #2F8F8C #5C2F8F #8F2F32
split-complementary
#628F2F #2F328F #8C2F8F
monochromatic
#233311 #426120 #628F2F #82BD3E #9FCE6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628F2F#FFFFFF#000000##000000
##628F2F1.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)
#958522
Deuteranopia (green-blind)
#8F8137
Tritanopia (blue-blind)
#64897B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #628f2f;
/* rgb */ color: rgb(98, 143, 47);
/* oklch */ color: oklch(59.7% 0.135 131.0);
Tailwind
colors: {
  custom: {
    50: '#92b06c',
    500: '#628f2f',
    950: '#000000',
  },
}
SCSS
$custom: #628f2f;
$custom-light: #92b06c;
$custom-dark: #000000;
JSON
{
  "hex": "#628f2f",
  "rgb": {
    "r": 98,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 88.125,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.59707,
    "c": 0.13504,
    "h": 131
  },
  "luminance": 0.22447
}

Semantic roles & 50–950 ramp

primary
#628F2F
secondary
#8A65B5
accent
#4EDA90
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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