#628D18#628D18

#628D18 is a mid, vivid yellow-green. Relative luminance 0.217; OKLCH L 59.0% C 0.147 H 128.8°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#628D18
RGBrgb(98, 141, 24)
HSLhsl(82, 71%, 32%)
HSVhsv(82, 83%, 55%)
CMYKcmyk(30.5%, 0%, 83%, 44.7%)
CIE-LABlab(53.72, -31.97, 52.21)
CIE-LCHlch(53.72, 61.22, 121.48°)
OKLaboklab(59.03% -0.0918 0.1144)
OKLCHoklch(59.03% 0.147 128.8)
XYZxyz(14.7267, 21.7120, 4.2789)
Luminance0.2171 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D18 #43188D
analogous
#8D7D18 #628D18 #288D18
triadic
#628D18 #18628D #8D1862
tetradic
#628D18 #188D7D #43188D #8D1828
square
#628D18 #188D7D #43188D #8D1828
split-complementary
#628D18 #18288D #7D188D
monochromatic
#192406 #3E590F #628D18 #86C121 #A5DF41

Accessibility & contrast

On white

3.93
#628D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#628D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628D18
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628D18#FFFFFF#000000##000000
##628D181.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#658678
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628d18;
/* rgb */ color: rgb(98, 141, 24);
/* oklch */ color: oklch(59.0% 0.147 128.8);
Tailwind
colors: {
  custom: {
    50: '#93ae61',
    500: '#628d18',
    950: '#000000',
  },
}
SCSS
$custom: #628d18;
$custom-light: #93ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#628d18",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 82.051,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59027,
    "c": 0.14669,
    "h": 128.8
  },
  "luminance": 0.21712
}

Semantic roles & 50–950 ramp

primary
#628D18
secondary
#7042BF
accent
#3AEE7C
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #628D18

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

Preview Lab → · Contrast checker → · Palette generator →

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