#628D23#628D23

#628D23 is a mid, vivid yellow-green. Relative luminance 0.218; OKLCH L 59.1% C 0.141 H 129.4°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#628D23
RGBrgb(98, 141, 35)
HSLhsl(84, 60%, 35%)
HSVhsv(84, 75%, 55%)
CMYKcmyk(30.5%, 0%, 75.2%, 44.7%)
CIE-LABlab(53.78, -31.38, 48.65)
CIE-LCHlch(53.78, 57.89, 122.82°)
OKLaboklab(59.09% -0.0894 0.1087)
OKLCHoklch(59.09% 0.141 129.4)
XYZxyz(14.8652, 21.7673, 5.0081)
Luminance0.2177 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628D23 #4E238D
analogous
#8D8323 #628D23 #2D8D23
triadic
#628D23 #23628D #8D2362
tetradic
#628D23 #238D83 #4E238D #8D232D
square
#628D23 #238D83 #4E238D #8D232D
split-complementary
#628D23 #232D8D #83238D
monochromatic
#1E2B0B #405C17 #628D23 #84BE2F #A1D555

Accessibility & contrast

On white

3.92
#628D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#628D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628D23
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628D23#FFFFFF#000000##000000
##628D231.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820E
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#658779
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #628d23;
/* rgb */ color: rgb(98, 141, 35);
/* oklch */ color: oklch(59.1% 0.141 129.4);
Tailwind
colors: {
  custom: {
    50: '#92ae66',
    500: '#628d23',
    950: '#000000',
  },
}
SCSS
$custom: #628d23;
$custom-light: #92ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#628d23",
  "rgb": {
    "r": 98,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 84.34,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59094,
    "c": 0.14078,
    "h": 129.4
  },
  "luminance": 0.21768
}

Semantic roles & 50–950 ramp

primary
#628D23
secondary
#7C53B9
accent
#44E385
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #628D23

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

Preview Lab → · Contrast checker → · Palette generator →

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