#628F31#628F31

#628F31 is a mid, vivid yellow-green. Relative luminance 0.225; OKLCH L 59.7% C 0.133 H 131.2°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#628F31
RGBrgb(98, 143, 49)
HSLhsl(89, 49%, 38%)
HSVhsv(89, 66%, 56%)
CMYKcmyk(31.5%, 0%, 65.7%, 43.9%)
CIE-LABlab(54.51, -31.28, 43.70)
CIE-LCHlch(54.51, 53.74, 125.60°)
OKLaboklab(59.73% -0.0879 0.1004)
OKLCHoklch(59.73% 0.133 131.2)
XYZxyz(15.4137, 22.4628, 6.4288)
Luminance0.2246 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628F31 #5E318F
analogous
#8F8D31 #628F31 #338F31
triadic
#628F31 #31628F #8F3162
tetradic
#628F31 #318F8D #5E318F #8F3133
square
#628F31 #318F8D #5E318F #8F3133
split-complementary
#628F31 #31338F #8D318F
monochromatic
#243412 #436121 #628F31 #81BD41 #9FCD6D

Accessibility & contrast

On white

3.82
#628F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#628F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628F31
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628F31#FFFFFF#000000##000000
##628F311.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958525
Deuteranopia (green-blind)
#8F8138
Tritanopia (blue-blind)
#64897C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #628f31;
/* rgb */ color: rgb(98, 143, 49);
/* oklch */ color: oklch(59.7% 0.133 131.2);
Tailwind
colors: {
  custom: {
    50: '#92b06e',
    500: '#628f31',
    950: '#000000',
  },
}
SCSS
$custom: #628f31;
$custom-light: #92b06e;
$custom-dark: #000000;
JSON
{
  "hex": "#628f31",
  "rgb": {
    "r": 98,
    "g": 143,
    "b": 49
  },
  "hsl": {
    "h": 88.723,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.59727,
    "c": 0.13345,
    "h": 131.2
  },
  "luminance": 0.22463
}

Semantic roles & 50–950 ramp

primary
#628F31
secondary
#8C67B5
accent
#4FD991
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628F31

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

Preview Lab → · Contrast checker → · Palette generator →

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