#228A1B#228A1B

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

Color values

HEX#228A1B
RGBrgb(34, 138, 27)
HSLhsl(116, 67%, 32%)
HSVhsv(116, 80%, 54%)
CMYKcmyk(75.4%, 0%, 80.4%, 45.9%)
CIE-LABlab(50.21, -49.78, 47.11)
CIE-LCHlch(50.21, 68.53, 136.58°)
OKLaboklab(55.45% -0.1355 0.1052)
OKLCHoklch(55.45% 0.172 142.2)
XYZxyz(9.9454, 18.5950, 4.1018)
Luminance0.1860 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228A1B #831B8A
analogous
#5A8A1B #228A1B #1B8A4B
triadic
#228A1B #1B228A #8A1B22
tetradic
#228A1B #1B5A8A #831B8A #8A4B1B
square
#228A1B #1B5A8A #831B8A #8A4B1B
split-complementary
#228A1B #4B1B8A #8A1B5A
monochromatic
#092407 #155711 #228A1B #2FBD25 #4EDB45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228A1B#FFFFFF#000000##000000
##228A1B1.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)
#8D7C00
Deuteranopia (green-blind)
#827428
Tritanopia (blue-blind)
#008675
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #228a1b;
/* rgb */ color: rgb(34, 138, 27);
/* oklch */ color: oklch(55.4% 0.172 142.2);
Tailwind
colors: {
  custom: {
    50: '#6fad61',
    500: '#228a1b',
    950: '#000000',
  },
}
SCSS
$custom: #228a1b;
$custom-light: #6fad61;
$custom-dark: #000000;
JSON
{
  "hex": "#228a1b",
  "rgb": {
    "r": 34,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 116.216,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.55449,
    "c": 0.17151,
    "h": 142.2
  },
  "luminance": 0.18596
}

Semantic roles & 50–950 ramp

primary
#228A1B
secondary
#B445BC
accent
#3EEADF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #228A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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