#227F26#227F26

#227F26 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.4% C 0.152 H 143.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#227F26
RGBrgb(34, 127, 38)
HSLhsl(123, 58%, 32%)
HSVhsv(123, 73%, 50%)
CMYKcmyk(73.2%, 0%, 70.1%, 50.2%)
CIE-LABlab(46.52, -45.04, 39.15)
CIE-LCHlch(46.52, 59.68, 139.00°)
OKLaboklab(52.41% -0.1221 0.0901)
OKLCHoklch(52.41% 0.152 143.6)
XYZxyz(8.5984, 15.6578, 4.4025)
Luminance0.1566 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F26 #7F227B
analogous
#4D7F22 #227F26 #227F55
triadic
#227F26 #26227F #7F2622
tetradic
#227F26 #224D7F #7F227B #7F5522
square
#227F26 #224D7F #7F227B #7F5522
split-complementary
#227F26 #55227F #7F224D
monochromatic
#081E09 #154F18 #227F26 #2FAF34 #4CCF52

Accessibility & contrast

On white

5.08
#227F26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#227F26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F26
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F26#FFFFFF#000000##FFFFFF
##227F261.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731A
Deuteranopia (green-blind)
#776B2E
Tritanopia (blue-blind)
#017B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f26;
/* rgb */ color: rgb(34, 127, 38);
/* oklch */ color: oklch(52.4% 0.152 143.6);
Tailwind
colors: {
  custom: {
    50: '#6ca565',
    500: '#227f26',
    950: '#000000',
  },
}
SCSS
$custom: #227f26;
$custom-light: #6ca565;
$custom-dark: #000000;
JSON
{
  "hex": "#227f26",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 38
  },
  "hsl": {
    "h": 122.581,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52412,
    "c": 0.1517,
    "h": 143.6
  },
  "luminance": 0.15659
}

Semantic roles & 50–950 ramp

primary
#227F26
secondary
#B24BAD
accent
#47DAE1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #227F26

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

Preview Lab → · Contrast checker → · Palette generator →

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