#227C1B#227C1B

#227C1B is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.155 H 142.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#227C1B
RGBrgb(34, 124, 27)
HSLhsl(116, 64%, 30%)
HSVhsv(116, 78%, 49%)
CMYKcmyk(72.6%, 0%, 78.2%, 51.4%)
CIE-LABlab(45.41, -44.97, 42.43)
CIE-LCHlch(45.41, 61.83, 136.66°)
OKLaboklab(51.46% -0.1224 0.0954)
OKLCHoklch(51.46% 0.155 142.1)
XYZxyz(8.0647, 14.8336, 3.4749)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227C1B #751B7C
analogous
#537C1B #227C1B #1B7C45
triadic
#227C1B #1B227C #7C1B22
tetradic
#227C1B #1B537C #751B7C #7C451B
square
#227C1B #1B537C #751B7C #7C451B
split-complementary
#227C1B #451B7C #7C1B53
monochromatic
#071905 #144A10 #227C1B #30AE26 #48D53D

Accessibility & contrast

On white

5.29
#227C1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#227C1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227C1B
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227C1B#FFFFFF#000000##FFFFFF
##227C1B1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7006
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#09786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227c1b;
/* rgb */ color: rgb(34, 124, 27);
/* oklch */ color: oklch(51.5% 0.155 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ca35f',
    500: '#227c1b',
    950: '#000000',
  },
}
SCSS
$custom: #227c1b;
$custom-light: #6ca35f;
$custom-dark: #000000;
JSON
{
  "hex": "#227c1b",
  "rgb": {
    "r": 34,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 115.67,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.51459,
    "c": 0.15526,
    "h": 142.1
  },
  "luminance": 0.14835
}

Semantic roles & 50–950 ramp

primary
#227C1B
secondary
#A843B0
accent
#41E7DB
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227C1B

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

Preview Lab → · Contrast checker → · Palette generator →

#227C1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva