#628B1F#628B1F

#628B1F is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.6% C 0.141 H 128.7°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#628B1F
RGBrgb(98, 139, 31)
HSLhsl(83, 64%, 33%)
HSVhsv(83, 78%, 55%)
CMYKcmyk(29.5%, 0%, 77.7%, 45.5%)
CIE-LABlab(53.12, -30.68, 49.45)
CIE-LCHlch(53.12, 58.19, 121.82°)
OKLaboklab(58.55% -0.0878 0.1097)
OKLCHoklch(58.55% 0.141 128.7)
XYZxyz(14.5169, 21.1605, 4.6156)
Luminance0.2116 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628B1F #481F8B
analogous
#8B7E1F #628B1F #2C8B1F
triadic
#628B1F #1F628B #8B1F62
tetradic
#628B1F #1F8B7E #481F8B #8B1F2C
square
#628B1F #1F8B7E #481F8B #8B1F2C
split-complementary
#628B1F #1F2C8B #7E1F8B
monochromatic
#1B2709 #3F5914 #628B1F #85BD2A #A3D74D

Accessibility & contrast

On white

4.01
#628B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#628B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628B1F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628B1F#FFFFFF#000000##000000
##628B1F1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928105
Deuteranopia (green-blind)
#8C7E2A
Tritanopia (blue-blind)
#658577
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #628b1f;
/* rgb */ color: rgb(98, 139, 31);
/* oklch */ color: oklch(58.6% 0.141 128.7);
Tailwind
colors: {
  custom: {
    50: '#92ad64',
    500: '#628b1f',
    950: '#000000',
  },
}
SCSS
$custom: #628b1f;
$custom-light: #92ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#628b1f",
  "rgb": {
    "r": 98,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 82.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58554,
    "c": 0.14056,
    "h": 128.7
  },
  "luminance": 0.21161
}

Semantic roles & 50–950 ramp

primary
#628B1F
secondary
#764CBA
accent
#41E780
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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