#628D1F#628D1F

#628D1F is a mid, vivid yellow-green. Relative luminance 0.217; OKLCH L 59.1% C 0.143 H 129.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#628D1F
RGBrgb(98, 141, 31)
HSLhsl(83, 64%, 34%)
HSVhsv(83, 78%, 55%)
CMYKcmyk(30.5%, 0%, 78%, 44.7%)
CIE-LABlab(53.76, -31.62, 50.05)
CIE-LCHlch(53.76, 59.20, 122.28°)
OKLaboklab(59.07% -0.0904 0.111)
OKLCHoklch(59.07% 0.143 129.2)
XYZxyz(14.8092, 21.7449, 4.7130)
Luminance0.2175 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D1F #4A1F8D
analogous
#8D811F #628D1F #2B8D1F
triadic
#628D1F #1F628D #8D1F62
tetradic
#628D1F #1F8D81 #4A1F8D #8D1F2B
square
#628D1F #1F8D81 #4A1F8D #8D1F2B
split-complementary
#628D1F #1F2B8D #811F8D
monochromatic
#1C2909 #3F5B14 #628D1F #85BF2A #A2D84E

Accessibility & contrast

On white

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

On black

5.35
#628D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628D1F
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628D1F#FFFFFF#000000##000000
##628D1F1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948204
Deuteranopia (green-blind)
#8E7F2A
Tritanopia (blue-blind)
#658778
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628d1f;
/* rgb */ color: rgb(98, 141, 31);
/* oklch */ color: oklch(59.1% 0.143 129.2);
Tailwind
colors: {
  custom: {
    50: '#93ae64',
    500: '#628d1f',
    950: '#000000',
  },
}
SCSS
$custom: #628d1f;
$custom-light: #93ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#628d1f",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 83.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59067,
    "c": 0.14313,
    "h": 129.2
  },
  "luminance": 0.21745
}

Semantic roles & 50–950 ramp

primary
#628D1F
secondary
#784DBB
accent
#41E782
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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