#628C1F#628C1F

#628C1F is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.8% C 0.142 H 128.9°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#628C1F
RGBrgb(98, 140, 31)
HSLhsl(83, 64%, 34%)
HSVhsv(83, 78%, 55%)
CMYKcmyk(30%, 0%, 77.9%, 45.1%)
CIE-LABlab(53.44, -31.15, 49.75)
CIE-LCHlch(53.44, 58.69, 122.06°)
OKLaboklab(58.81% -0.0891 0.1104)
OKLCHoklch(58.81% 0.142 128.9)
XYZxyz(14.6624, 21.4514, 4.6641)
Luminance0.2145 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628C1F #491F8C
analogous
#8C7F1F #628C1F #2B8C1F
triadic
#628C1F #1F628C #8C1F62
tetradic
#628C1F #1F8C7F #491F8C #8C1F2B
square
#628C1F #1F8C7F #491F8C #8C1F2B
split-complementary
#628C1F #1F2B8C #7F1F8C
monochromatic
#1C2809 #3F5A14 #628C1F #85BE2A #A3D84E

Accessibility & contrast

On white

3.97
#628C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#628C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628C1F
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628C1F#FFFFFF#000000##000000
##628C1F1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938204
Deuteranopia (green-blind)
#8D7F2A
Tritanopia (blue-blind)
#658677
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628c1f;
/* rgb */ color: rgb(98, 140, 31);
/* oklch */ color: oklch(58.8% 0.142 128.9);
Tailwind
colors: {
  custom: {
    50: '#93ae64',
    500: '#628c1f',
    950: '#000000',
  },
}
SCSS
$custom: #628c1f;
$custom-light: #93ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#628c1f",
  "rgb": {
    "r": 98,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 83.119,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58811,
    "c": 0.14184,
    "h": 128.9
  },
  "luminance": 0.21452
}

Semantic roles & 50–950 ramp

primary
#628C1F
secondary
#774CBB
accent
#41E781
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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