#628C23#628C23

#628C23 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.8% C 0.139 H 129.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#628C23
RGBrgb(98, 140, 35)
HSLhsl(84, 60%, 34%)
HSVhsv(84, 75%, 55%)
CMYKcmyk(30%, 0%, 75%, 45.1%)
CIE-LABlab(53.46, -30.91, 48.34)
CIE-LCHlch(53.46, 57.38, 122.60°)
OKLaboklab(58.84% -0.0882 0.1081)
OKLCHoklch(58.84% 0.139 129.2)
XYZxyz(14.7184, 21.4738, 4.9592)
Luminance0.2147 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628C23 #4D238C
analogous
#8C8223 #628C23 #2E8C23
triadic
#628C23 #23628C #8C2362
tetradic
#628C23 #238C82 #4D238C #8C232E
square
#628C23 #238C82 #4D238C #8C232E
split-complementary
#628C23 #232E8C #82238C
monochromatic
#1D2A0B #405B17 #628C23 #84BD2F #A1D455

Accessibility & contrast

On white

3.97
#628C23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#628C23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628C23
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628C23#FFFFFF#000000##000000
##628C231.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820F
Deuteranopia (green-blind)
#8D7F2D
Tritanopia (blue-blind)
#658678
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628c23;
/* rgb */ color: rgb(98, 140, 35);
/* oklch */ color: oklch(58.8% 0.139 129.2);
Tailwind
colors: {
  custom: {
    50: '#92ae66',
    500: '#628c23',
    950: '#000000',
  },
}
SCSS
$custom: #628c23;
$custom-light: #92ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#628c23",
  "rgb": {
    "r": 98,
    "g": 140,
    "b": 35
  },
  "hsl": {
    "h": 84,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58838,
    "c": 0.13946,
    "h": 129.2
  },
  "luminance": 0.21474
}

Semantic roles & 50–950 ramp

primary
#628C23
secondary
#7B52B8
accent
#45E384
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628C23

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

Preview Lab → · Contrast checker → · Palette generator →

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