#628F28#628F28

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

Color values

HEX#628F28
RGBrgb(98, 143, 40)
HSLhsl(86, 56%, 36%)
HSVhsv(86, 72%, 56%)
CMYKcmyk(31.5%, 0%, 72%, 43.9%)
CIE-LABlab(54.44, -31.98, 47.40)
CIE-LCHlch(54.44, 57.18, 124.01°)
OKLaboklab(59.65% -0.0906 0.1069)
OKLCHoklch(59.65% 0.14 130.3)
XYZxyz(15.2424, 22.3943, 5.5265)
Luminance0.2240 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628F28 #55288F
analogous
#8F8828 #628F28 #2E8F28
triadic
#628F28 #28628F #8F2862
tetradic
#628F28 #288F88 #55288F #8F282E
square
#628F28 #288F88 #55288F #8F282E
split-complementary
#628F28 #282E8F #88288F
monochromatic
#202F0D #415F1B #628F28 #83BF35 #A0D25F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628F28#FFFFFF#000000##000000
##628F281.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)
#968417
Deuteranopia (green-blind)
#8F8131
Tritanopia (blue-blind)
#64897B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #628f28;
/* rgb */ color: rgb(98, 143, 40);
/* oklch */ color: oklch(59.6% 0.140 130.3);
Tailwind
colors: {
  custom: {
    50: '#92b069',
    500: '#628f28',
    950: '#000000',
  },
}
SCSS
$custom: #628f28;
$custom-light: #92b069;
$custom-dark: #000000;
JSON
{
  "hex": "#628f28",
  "rgb": {
    "r": 98,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 86.214,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59645,
    "c": 0.14015,
    "h": 130.3
  },
  "luminance": 0.22395
}

Semantic roles & 50–950 ramp

primary
#628F28
secondary
#845BB8
accent
#48E08A
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628F28

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

Preview Lab → · Contrast checker → · Palette generator →

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