#228E1B#228E1B

#228E1B is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.6% C 0.176 H 142.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#228E1B
RGBrgb(34, 142, 27)
HSLhsl(116, 68%, 33%)
HSVhsv(116, 81%, 56%)
CMYKcmyk(76.1%, 0%, 81%, 44.3%)
CIE-LABlab(51.57, -51.11, 48.41)
CIE-LCHlch(51.57, 70.39, 136.55°)
OKLaboklab(56.58% -0.1391 0.1079)
OKLCHoklch(56.58% 0.176 142.2)
XYZxyz(10.5299, 19.7640, 4.2966)
Luminance0.1976 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E1B #871B8E
analogous
#5B8E1B #228E1B #1B8E4D
triadic
#228E1B #1B228E #8E1B22
tetradic
#228E1B #1B5B8E #871B8E #8E4D1B
square
#228E1B #1B5B8E #871B8E #8E4D1B
split-complementary
#228E1B #4D1B8E #8E1B5B
monochromatic
#092707 #165B11 #228E1B #2EC125 #50DC47

Accessibility & contrast

On white

4.24
#228E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#228E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E1B
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E1B#FFFFFF#000000##000000
##228E1B1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#857829
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e1b;
/* rgb */ color: rgb(34, 142, 27);
/* oklch */ color: oklch(56.6% 0.176 142.2);
Tailwind
colors: {
  custom: {
    50: '#70b062',
    500: '#228e1b',
    950: '#000000',
  },
}
SCSS
$custom: #228e1b;
$custom-light: #70b062;
$custom-dark: #000000;
JSON
{
  "hex": "#228e1b",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 116.348,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56578,
    "c": 0.17602,
    "h": 142.2
  },
  "luminance": 0.19765
}

Semantic roles & 50–950 ramp

primary
#228E1B
secondary
#B747BE
accent
#3DEBE0
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #228E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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