#628D1A#628D1A

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

Color values

HEX#628D1A
RGBrgb(98, 141, 26)
HSLhsl(82, 69%, 33%)
HSVhsv(82, 82%, 55%)
CMYKcmyk(30.5%, 0%, 81.6%, 44.7%)
CIE-LABlab(53.73, -31.88, 51.63)
CIE-LCHlch(53.73, 60.68, 121.69°)
OKLaboklab(59.04% -0.0914 0.1135)
OKLCHoklch(59.04% 0.146 128.9)
XYZxyz(14.7483, 21.7206, 4.3925)
Luminance0.2172 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D1A #451A8D
analogous
#8D7E1A #628D1A #288D1A
triadic
#628D1A #1A628D #8D1A62
tetradic
#628D1A #1A8D7E #451A8D #8D1A28
square
#628D1A #1A8D7E #451A8D #8D1A28
split-complementary
#628D1A #1A288D #7E1A8D
monochromatic
#1A2607 #3E5910 #628D1A #86C124 #A4DD45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628D1A#FFFFFF#000000##000000
##628D1A1.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)
#8E7F27
Tritanopia (blue-blind)
#658678
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628d1a;
/* rgb */ color: rgb(98, 141, 26);
/* oklch */ color: oklch(59.0% 0.146 128.9);
Tailwind
colors: {
  custom: {
    50: '#93ae62',
    500: '#628d1a',
    950: '#000000',
  },
}
SCSS
$custom: #628d1a;
$custom-light: #93ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#628d1a",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 82.435,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59038,
    "c": 0.14575,
    "h": 128.9
  },
  "luminance": 0.21721
}

Semantic roles & 50–950 ramp

primary
#628D1A
secondary
#7245BE
accent
#3CEC7E
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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