#228F2E#228F2E

#228F2E is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.0% C 0.165 H 144.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#228F2E
RGBrgb(34, 143, 46)
HSLhsl(127, 62%, 35%)
HSVhsv(127, 76%, 56%)
CMYKcmyk(76.2%, 0%, 67.8%, 43.9%)
CIE-LABlab(52.04, -49.81, 41.63)
CIE-LCHlch(52.04, 64.91, 140.11°)
OKLaboklab(57.01% -0.1346 0.0962)
OKLCHoklch(57.01% 0.165 144.4)
XYZxyz(10.9746, 20.1810, 5.9012)
Luminance0.2018 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F2E #8F2283
analogous
#4C8F22 #228F2E #228F65
triadic
#228F2E #2E228F #8F2E22
tetradic
#228F2E #224C8F #8F2283 #8F6522
square
#228F2E #224C8F #8F2283 #8F6522
split-complementary
#228F2E #65228F #8F224C
monochromatic
#0A2C0E #165E1E #228F2E #2EC03E #55D763

Accessibility & contrast

On white

4.17
#228F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#228F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F2E
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F2E#FFFFFF#000000##000000
##228F2E1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928121
Deuteranopia (green-blind)
#857937
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f2e;
/* rgb */ color: rgb(34, 143, 46);
/* oklch */ color: oklch(57.0% 0.165 144.4);
Tailwind
colors: {
  custom: {
    50: '#70b16b',
    500: '#228f2e',
    950: '#000000',
  },
}
SCSS
$custom: #228f2e;
$custom-light: #70b16b;
$custom-dark: #000000;
JSON
{
  "hex": "#228f2e",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 46
  },
  "hsl": {
    "h": 126.606,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57013,
    "c": 0.16549,
    "h": 144.4
  },
  "luminance": 0.20182
}

Semantic roles & 50–950 ramp

primary
#228F2E
secondary
#BA52AF
accent
#43D3E5
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #228F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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