#628A1F#628A1F

#628A1F is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.3% C 0.139 H 128.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#628A1F
RGBrgb(98, 138, 31)
HSLhsl(82, 63%, 33%)
HSVhsv(82, 78%, 54%)
CMYKcmyk(29%, 0%, 77.5%, 45.9%)
CIE-LABlab(52.81, -30.21, 49.14)
CIE-LCHlch(52.81, 57.69, 121.58°)
OKLaboklab(58.3% -0.0865 0.1091)
OKLCHoklch(58.3% 0.139 128.4)
XYZxyz(14.3728, 20.8722, 4.5675)
Luminance0.2087 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628A1F #471F8A
analogous
#8A7C1F #628A1F #2C8A1F
triadic
#628A1F #1F628A #8A1F62
tetradic
#628A1F #1F8A7C #471F8A #8A1F2C
square
#628A1F #1F8A7C #471F8A #8A1F2C
split-complementary
#628A1F #1F2C8A #7C1F8A
monochromatic
#1B2609 #3F5814 #628A1F #85BC2A #A3D74C

Accessibility & contrast

On white

4.06
#628A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#628A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628A1F
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628A1F#FFFFFF#000000##000000
##628A1F1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918006
Deuteranopia (green-blind)
#8C7D2A
Tritanopia (blue-blind)
#658476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #628a1f;
/* rgb */ color: rgb(98, 138, 31);
/* oklch */ color: oklch(58.3% 0.139 128.4);
Tailwind
colors: {
  custom: {
    50: '#92ac63',
    500: '#628a1f',
    950: '#000000',
  },
}
SCSS
$custom: #628a1f;
$custom-light: #92ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#628a1f",
  "rgb": {
    "r": 98,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 82.43,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58298,
    "c": 0.13926,
    "h": 128.4
  },
  "luminance": 0.20873
}

Semantic roles & 50–950 ramp

primary
#628A1F
secondary
#744BBA
accent
#41E67F
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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