#628231#628231

#628231 is a mid, moderate yellow-green. Relative luminance 0.188; OKLCH L 56.4% C 0.115 H 127.9°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#628231
RGBrgb(98, 130, 49)
HSLhsl(84, 45%, 35%)
HSVhsv(84, 62%, 51%)
CMYKcmyk(24.6%, 0%, 62.3%, 49%)
CIE-LABlab(50.43, -25.00, 39.22)
CIE-LCHlch(50.43, 46.51, 122.51°)
OKLaboklab(56.42% -0.0707 0.0909)
OKLCHoklch(56.42% 0.115 127.9)
XYZxyz(13.5740, 18.7834, 5.8156)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628231 #513182
analogous
#827931 #628231 #398231
triadic
#628231 #316282 #823162
tetradic
#628231 #318279 #513182 #823139
square
#628231 #318279 #513182 #823139
split-complementary
#628231 #313982 #793182
monochromatic
#1F290F #405620 #628231 #84AE42 #A1C668

Accessibility & contrast

On white

4.41
#628231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#628231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628231
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628231#FFFFFF#000000##000000
##6282311.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#887928
Deuteranopia (green-blind)
#847737
Tritanopia (blue-blind)
#657C71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #628231;
/* rgb */ color: rgb(98, 130, 49);
/* oklch */ color: oklch(56.4% 0.115 127.9);
Tailwind
colors: {
  custom: {
    50: '#91a66d',
    500: '#628231',
    950: '#000000',
  },
}
SCSS
$custom: #628231;
$custom-light: #91a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#628231",
  "rgb": {
    "r": 98,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 83.704,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.56415,
    "c": 0.11512,
    "h": 127.9
  },
  "luminance": 0.18784
}

Semantic roles & 50–950 ramp

primary
#628231
secondary
#7F62AD
accent
#53D586
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D0F07
muted
#7E7F7A

Preview Lab

Preview with #628231

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

Preview Lab → · Contrast checker → · Palette generator →

#628231 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva