#228D1B#228D1B

#228D1B is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.3% C 0.175 H 142.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#228D1B
RGBrgb(34, 141, 27)
HSLhsl(116, 68%, 33%)
HSVhsv(116, 81%, 55%)
CMYKcmyk(75.9%, 0%, 80.9%, 44.7%)
CIE-LABlab(51.23, -50.78, 48.09)
CIE-LCHlch(51.23, 69.93, 136.56°)
OKLaboklab(56.3% -0.1382 0.1072)
OKLCHoklch(56.3% 0.175 142.2)
XYZxyz(10.3818, 19.4678, 4.2472)
Luminance0.1947 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228D1B #861B8D
analogous
#5B8D1B #228D1B #1B8D4D
triadic
#228D1B #1B228D #8D1B22
tetradic
#228D1B #1B5B8D #861B8D #8D4D1B
square
#228D1B #1B5B8D #861B8D #8D4D1B
split-complementary
#228D1B #4D1B8D #8D1B5B
monochromatic
#092607 #165A11 #228D1B #2EC025 #50DC47

Accessibility & contrast

On white

4.29
#228D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#228D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228D1B
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228D1B#FFFFFF#000000##000000
##228D1B1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#847729
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228d1b;
/* rgb */ color: rgb(34, 141, 27);
/* oklch */ color: oklch(56.3% 0.175 142.2);
Tailwind
colors: {
  custom: {
    50: '#70af61',
    500: '#228d1b',
    950: '#000000',
  },
}
SCSS
$custom: #228d1b;
$custom-light: #70af61;
$custom-dark: #000000;
JSON
{
  "hex": "#228d1b",
  "rgb": {
    "r": 34,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 116.316,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56296,
    "c": 0.1749,
    "h": 142.2
  },
  "luminance": 0.19469
}

Semantic roles & 50–950 ramp

primary
#228D1B
secondary
#B646BD
accent
#3DEBE0
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #228D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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