#628A1B#628A1B

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

Color values

HEX#628A1B
RGBrgb(98, 138, 27)
HSLhsl(82, 67%, 32%)
HSVhsv(82, 80%, 54%)
CMYKcmyk(29%, 0%, 80.4%, 45.9%)
CIE-LABlab(52.79, -30.42, 50.45)
CIE-LCHlch(52.79, 58.92, 121.09°)
OKLaboklab(58.27% -0.0874 0.1112)
OKLCHoklch(58.27% 0.141 128.2)
XYZxyz(14.3233, 20.8524, 4.3070)
Luminance0.2085 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628A1B #431B8A
analogous
#8A7B1B #628A1B #2A8A1B
triadic
#628A1B #1B628A #8A1B62
tetradic
#628A1B #1B8A7B #431B8A #8A1B2A
square
#628A1B #1B8A7B #431B8A #8A1B2A
split-complementary
#628A1B #1B2A8A #7B1B8A
monochromatic
#192407 #3E5711 #628A1B #86BD25 #A5DB45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##628A1B#FFFFFF#000000##000000
##628A1B1.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)
#918000
Deuteranopia (green-blind)
#8C7D27
Tritanopia (blue-blind)
#668376
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #628a1b;
/* rgb */ color: rgb(98, 138, 27);
/* oklch */ color: oklch(58.3% 0.141 128.2);
Tailwind
colors: {
  custom: {
    50: '#93ac62',
    500: '#628a1b',
    950: '#000000',
  },
}
SCSS
$custom: #628a1b;
$custom-light: #93ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#628a1b",
  "rgb": {
    "r": 98,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 81.622,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58273,
    "c": 0.14145,
    "h": 128.2
  },
  "luminance": 0.20853
}

Semantic roles & 50–950 ramp

primary
#628A1B
secondary
#7045BC
accent
#3EEA7C
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #628A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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