#628F1F#628F1F

#628F1F is a mid, vivid yellow-green. Relative luminance 0.223; OKLCH L 59.6% C 0.146 H 129.6°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#628F1F
RGBrgb(98, 143, 31)
HSLhsl(84, 64%, 34%)
HSVhsv(84, 78%, 56%)
CMYKcmyk(31.5%, 0%, 78.3%, 43.9%)
CIE-LABlab(54.39, -32.55, 50.64)
CIE-LCHlch(54.39, 60.20, 122.73°)
OKLaboklab(59.58% -0.0929 0.1123)
OKLCHoklch(59.58% 0.146 129.6)
XYZxyz(15.1067, 22.3401, 4.8122)
Luminance0.2234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628F1F #4C1F8F
analogous
#8F841F #628F1F #2A8F1F
triadic
#628F1F #1F628F #8F1F62
tetradic
#628F1F #1F8F84 #4C1F8F #8F1F2A
square
#628F1F #1F8F84 #4C1F8F #8F1F2A
split-complementary
#628F1F #1F2A8F #841F8F
monochromatic
#1D2A09 #405D14 #628F1F #84C12A #A2D94F

Accessibility & contrast

On white

3.84
#628F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#628F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628F1F
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628F1F#FFFFFF#000000##000000
##628F1F1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #628f1f;
/* rgb */ color: rgb(98, 143, 31);
/* oklch */ color: oklch(59.6% 0.146 129.6);
Tailwind
colors: {
  custom: {
    50: '#93b064',
    500: '#628f1f',
    950: '#000000',
  },
}
SCSS
$custom: #628f1f;
$custom-light: #93b064;
$custom-dark: #000000;
JSON
{
  "hex": "#628f1f",
  "rgb": {
    "r": 98,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 84.107,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59581,
    "c": 0.14571,
    "h": 129.6
  },
  "luminance": 0.22341
}

Semantic roles & 50–950 ramp

primary
#628F1F
secondary
#7A4EBC
accent
#40E784
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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