#628C1B#628C1B

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

Color values

HEX#628C1B
RGBrgb(98, 140, 27)
HSLhsl(82, 68%, 33%)
HSVhsv(82, 81%, 55%)
CMYKcmyk(30%, 0%, 80.7%, 45.1%)
CIE-LABlab(53.42, -31.36, 51.04)
CIE-LCHlch(53.42, 59.90, 121.57°)
OKLaboklab(58.79% -0.09 0.1124)
OKLCHoklch(58.79% 0.144 128.7)
XYZxyz(14.6129, 21.4316, 4.4035)
Luminance0.2143 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628C1B #451B8C
analogous
#8C7E1B #628C1B #298C1B
triadic
#628C1B #1B628C #8C1B62
tetradic
#628C1B #1B8C7E #451B8C #8C1B29
square
#628C1B #1B8C7E #451B8C #8C1B29
split-complementary
#628C1B #1B298C #7E1B8C
monochromatic
#1A2507 #3E5911 #628C1B #86BF25 #A4DB46

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628C1B#FFFFFF#000000##000000
##628C1B1.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)
#938100
Deuteranopia (green-blind)
#8D7F27
Tritanopia (blue-blind)
#658577
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628c1b;
/* rgb */ color: rgb(98, 140, 27);
/* oklch */ color: oklch(58.8% 0.144 128.7);
Tailwind
colors: {
  custom: {
    50: '#93ae62',
    500: '#628c1b',
    950: '#000000',
  },
}
SCSS
$custom: #628c1b;
$custom-light: #93ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#628c1b",
  "rgb": {
    "r": 98,
    "g": 140,
    "b": 27
  },
  "hsl": {
    "h": 82.301,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58787,
    "c": 0.144,
    "h": 128.7
  },
  "luminance": 0.21432
}

Semantic roles & 50–950 ramp

primary
#628C1B
secondary
#7246BD
accent
#3DEB7E
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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