#628E1F#628E1F

#628E1F is a mid, vivid yellow-green. Relative luminance 0.220; OKLCH L 59.3% C 0.144 H 129.4°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#628E1F
RGBrgb(98, 142, 31)
HSLhsl(84, 64%, 34%)
HSVhsv(84, 78%, 56%)
CMYKcmyk(31%, 0%, 78.2%, 44.3%)
CIE-LABlab(54.07, -32.08, 50.34)
CIE-LCHlch(54.07, 59.70, 122.51°)
OKLaboklab(59.32% -0.0916 0.1116)
OKLCHoklch(59.32% 0.144 129.4)
XYZxyz(14.9573, 22.0412, 4.7624)
Luminance0.2204 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628E1F #4B1F8E
analogous
#8E831F #628E1F #2B8E1F
triadic
#628E1F #1F628E #8E1F62
tetradic
#628E1F #1F8E83 #4B1F8E #8E1F2B
square
#628E1F #1F8E83 #4B1F8E #8E1F2B
split-complementary
#628E1F #1F2B8E #831F8E
monochromatic
#1D2A09 #3F5C14 #628E1F #85C02A #A2D94F

Accessibility & contrast

On white

3.88
#628E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#628E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628E1F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628E1F#FFFFFF#000000##000000
##628E1F1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958303
Deuteranopia (green-blind)
#8F802A
Tritanopia (blue-blind)
#658779
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628e1f;
/* rgb */ color: rgb(98, 142, 31);
/* oklch */ color: oklch(59.3% 0.144 129.4);
Tailwind
colors: {
  custom: {
    50: '#93af64',
    500: '#628e1f',
    950: '#000000',
  },
}
SCSS
$custom: #628e1f;
$custom-light: #93af64;
$custom-dark: #000000;
JSON
{
  "hex": "#628e1f",
  "rgb": {
    "r": 98,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 83.784,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59324,
    "c": 0.14442,
    "h": 129.4
  },
  "luminance": 0.22042
}

Semantic roles & 50–950 ramp

primary
#628E1F
secondary
#794DBB
accent
#41E783
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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