#628312#628312

#628312 is a mid, vivid yellow-green. Relative luminance 0.189; OKLCH L 56.4% C 0.137 H 125.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#628312
RGBrgb(98, 131, 18)
HSLhsl(78, 76%, 29%)
HSVhsv(78, 86%, 51%)
CMYKcmyk(25.2%, 0%, 86.3%, 48.6%)
CIE-LABlab(50.54, -27.46, 51.03)
CIE-LCHlch(50.54, 57.95, 118.29°)
OKLaboklab(56.43% -0.08 0.1109)
OKLCHoklch(56.43% 0.137 125.8)
XYZxyz(13.2626, 18.8727, 3.5162)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#628312 #331283
analogous
#836C12 #628312 #2A8312
triadic
#628312 #126283 #831262
tetradic
#628312 #12836C #331283 #83122A
square
#628312 #12836C #331283 #83122A
split-complementary
#628312 #122A83 #6C1283
monochromatic
#141B04 #3A4D0B #628312 #8AB919 #ADE22D

Accessibility & contrast

On white

4.40
#628312 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#628312 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #628312
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##628312#FFFFFF#000000##000000
##6283121.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#867820
Tritanopia (blue-blind)
#677C6F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #628312;
/* rgb */ color: rgb(98, 131, 18);
/* oklch */ color: oklch(56.4% 0.137 125.8);
Tailwind
colors: {
  custom: {
    50: '#93a75d',
    500: '#628312',
    950: '#000000',
  },
}
SCSS
$custom: #628312;
$custom-light: #93a75d;
$custom-dark: #000000;
JSON
{
  "hex": "#628312",
  "rgb": {
    "r": 98,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 77.522,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56433,
    "c": 0.13677,
    "h": 125.8
  },
  "luminance": 0.18873
}

Semantic roles & 50–950 ramp

primary
#628312
secondary
#5E38B8
accent
#35F26D
background
#F9FAF5
surface
#F2F4E9
border
#CCCEC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #628312

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

Preview Lab → · Contrast checker → · Palette generator →

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