#628E2B#628E2B

#628E2B is a mid, vivid yellow-green. Relative luminance 0.221; OKLCH L 59.4% C 0.137 H 130.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#628E2B
RGBrgb(98, 142, 43)
HSLhsl(87, 54%, 36%)
HSVhsv(87, 70%, 56%)
CMYKcmyk(31%, 0%, 69.7%, 44.3%)
CIE-LABlab(54.15, -31.30, 45.89)
CIE-LCHlch(54.15, 55.55, 124.30°)
OKLaboklab(59.41% -0.0885 0.1042)
OKLCHoklch(59.41% 0.137 130.4)
XYZxyz(15.1459, 22.1166, 5.7560)
Luminance0.2212 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628E2B #572B8E
analogous
#8E892B #628E2B #308E2B
triadic
#628E2B #2B628E #8E2B62
tetradic
#628E2B #2B8E89 #572B8E #8E2B30
square
#628E2B #2B8E89 #572B8E #8E2B30
split-complementary
#628E2B #2B308E #892B8E
monochromatic
#21300F #425F1D #628E2B #82BD39 #A0D063

Accessibility & contrast

On white

3.87
#628E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#628E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628E2B
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628E2B#FFFFFF#000000##000000
##628E2B1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841C
Deuteranopia (green-blind)
#8E8033
Tritanopia (blue-blind)
#64887A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #628e2b;
/* rgb */ color: rgb(98, 142, 43);
/* oklch */ color: oklch(59.4% 0.137 130.4);
Tailwind
colors: {
  custom: {
    50: '#92af6a',
    500: '#628e2b',
    950: '#000000',
  },
}
SCSS
$custom: #628e2b;
$custom-light: #92af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#628e2b",
  "rgb": {
    "r": 98,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 86.667,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59415,
    "c": 0.13669,
    "h": 130.4
  },
  "luminance": 0.22117
}

Semantic roles & 50–950 ramp

primary
#628E2B
secondary
#865FB6
accent
#4BDD8C
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #628E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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