#628F2A#628F2A

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

Color values

HEX#628F2A
RGBrgb(98, 143, 42)
HSLhsl(87, 55%, 36%)
HSVhsv(87, 71%, 56%)
CMYKcmyk(31.5%, 0%, 70.6%, 43.9%)
CIE-LABlab(54.46, -31.84, 46.62)
CIE-LCHlch(54.46, 56.45, 124.33°)
OKLaboklab(59.66% -0.0901 0.1055)
OKLCHoklch(59.66% 0.139 130.5)
XYZxyz(15.2773, 22.4083, 5.7103)
Luminance0.2241 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628F2A #572A8F
analogous
#8F8A2A #628F2A #2F8F2A
triadic
#628F2A #2A628F #8F2A62
tetradic
#628F2A #2A8F8A #572A8F #8F2A2F
square
#628F2A #2A8F8A #572A8F #8F2A2F
split-complementary
#628F2A #2A2F8F #8A2A8F
monochromatic
#21300E #42601C #628F2A #82BE38 #A0D162

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628F2A#FFFFFF#000000##000000
##628F2A1.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)
#96841B
Deuteranopia (green-blind)
#8F8133
Tritanopia (blue-blind)
#64897B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #628f2a;
/* rgb */ color: rgb(98, 143, 42);
/* oklch */ color: oklch(59.7% 0.139 130.5);
Tailwind
colors: {
  custom: {
    50: '#92b06a',
    500: '#628f2a',
    950: '#000000',
  },
}
SCSS
$custom: #628f2a;
$custom-light: #92b06a;
$custom-dark: #000000;
JSON
{
  "hex": "#628f2a",
  "rgb": {
    "r": 98,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 86.733,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59662,
    "c": 0.13876,
    "h": 130.5
  },
  "luminance": 0.22409
}

Semantic roles & 50–950 ramp

primary
#628F2A
secondary
#865EB7
accent
#4ADE8C
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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