#628F18#628F18

#628F18 is a mid, vivid yellow-green. Relative luminance 0.223; OKLCH L 59.5% C 0.149 H 129.2°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#628F18
RGBrgb(98, 143, 24)
HSLhsl(83, 71%, 33%)
HSVhsv(83, 83%, 56%)
CMYKcmyk(31.5%, 0%, 83.2%, 43.9%)
CIE-LABlab(54.35, -32.89, 52.78)
CIE-LCHlch(54.35, 62.19, 121.93°)
OKLaboklab(59.54% -0.0943 0.1156)
OKLCHoklch(59.54% 0.149 129.2)
XYZxyz(15.0243, 22.3071, 4.3781)
Luminance0.2231 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628F18 #45188F
analogous
#8F8018 #628F18 #278F18
triadic
#628F18 #18628F #8F1862
tetradic
#628F18 #188F80 #45188F #8F1827
square
#628F18 #188F80 #45188F #8F1827
split-complementary
#628F18 #18278F #80188F
monochromatic
#1A2606 #3E5B0F #628F18 #86C321 #A4DF42

Accessibility & contrast

On white

3.85
#628F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#628F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628F18
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628F18#FFFFFF#000000##000000
##628F181.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#908126
Tritanopia (blue-blind)
#65887A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #628f18;
/* rgb */ color: rgb(98, 143, 24);
/* oklch */ color: oklch(59.5% 0.149 129.2);
Tailwind
colors: {
  custom: {
    50: '#93b061',
    500: '#628f18',
    950: '#000000',
  },
}
SCSS
$custom: #628f18;
$custom-light: #93b061;
$custom-dark: #000000;
JSON
{
  "hex": "#628f18",
  "rgb": {
    "r": 98,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 82.689,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59541,
    "c": 0.14919,
    "h": 129.2
  },
  "luminance": 0.22308
}

Semantic roles & 50–950 ramp

primary
#628F18
secondary
#7243C0
accent
#3AEE7E
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #628F18

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

Preview Lab → · Contrast checker → · Palette generator →

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