#228A1F#228A1F

#228A1F is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.5% C 0.169 H 142.6°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#228A1F
RGBrgb(34, 138, 31)
HSLhsl(118, 63%, 33%)
HSVhsv(118, 78%, 54%)
CMYKcmyk(75.4%, 0%, 77.5%, 45.9%)
CIE-LABlab(50.23, -49.49, 45.76)
CIE-LCHlch(50.23, 67.40, 137.24°)
OKLaboklab(55.48% -0.1345 0.103)
OKLCHoklch(55.48% 0.169 142.6)
XYZxyz(9.9949, 18.6148, 4.3623)
Luminance0.1862 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228A1F #871F8A
analogous
#578A1F #228A1F #1F8A51
triadic
#228A1F #1F228A #8A1F22
tetradic
#228A1F #1F578A #871F8A #8A511F
square
#228A1F #1F578A #871F8A #8A511F
split-complementary
#228A1F #511F8A #8A1F57
monochromatic
#092609 #165814 #228A1F #2EBC2A #50D74C

Accessibility & contrast

On white

4.45
#228A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#228A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228A1F
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228A1F#FFFFFF#000000##000000
##228A1F1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C07
Deuteranopia (green-blind)
#82742B
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #228a1f;
/* rgb */ color: rgb(34, 138, 31);
/* oklch */ color: oklch(55.5% 0.169 142.6);
Tailwind
colors: {
  custom: {
    50: '#6fad63',
    500: '#228a1f',
    950: '#000000',
  },
}
SCSS
$custom: #228a1f;
$custom-light: #6fad63;
$custom-dark: #000000;
JSON
{
  "hex": "#228a1f",
  "rgb": {
    "r": 34,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 118.318,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55476,
    "c": 0.16938,
    "h": 142.6
  },
  "luminance": 0.18616
}

Semantic roles & 50–950 ramp

primary
#228A1F
secondary
#B74BBA
accent
#41E6E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #228A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#228A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva