#227F1A#227F1A

#227F1A is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.159 H 142.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#227F1A
RGBrgb(34, 127, 26)
HSLhsl(115, 66%, 30%)
HSVhsv(115, 80%, 50%)
CMYKcmyk(73.2%, 0%, 79.5%, 50.2%)
CIE-LABlab(46.44, -46.09, 43.80)
CIE-LCHlch(46.44, 63.59, 136.46°)
OKLaboklab(52.31% -0.1255 0.0982)
OKLCHoklch(52.31% 0.159 142)
XYZxyz(8.4350, 15.5925, 3.5422)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F1A #771A7F
analogous
#547F1A #227F1A #1A7F45
triadic
#227F1A #1A227F #7F1A22
tetradic
#227F1A #1A547F #771A7F #7F451A
square
#227F1A #1A547F #771A7F #7F451A
split-complementary
#227F1A #451A7F #7F1A54
monochromatic
#071905 #144C10 #227F1A #30B224 #49D73C

Accessibility & contrast

On white

5.10
#227F1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#227F1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F1A
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F1A#FFFFFF#000000##FFFFFF
##227F1A1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827202
Deuteranopia (green-blind)
#786B25
Tritanopia (blue-blind)
#067B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f1a;
/* rgb */ color: rgb(34, 127, 26);
/* oklch */ color: oklch(52.3% 0.159 142.0);
Tailwind
colors: {
  custom: {
    50: '#6da55f',
    500: '#227f1a',
    950: '#000000',
  },
}
SCSS
$custom: #227f1a;
$custom-light: #6da55f;
$custom-dark: #000000;
JSON
{
  "hex": "#227f1a",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 115.248,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.52312,
    "c": 0.15937,
    "h": 142
  },
  "luminance": 0.15593
}

Semantic roles & 50–950 ramp

primary
#227F1A
secondary
#AA42B3
accent
#3FE9DB
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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