#227F25#227F25

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

Color values

HEX#227F25
RGBrgb(34, 127, 37)
HSLhsl(122, 58%, 32%)
HSVhsv(122, 73%, 50%)
CMYKcmyk(73.2%, 0%, 70.9%, 50.2%)
CIE-LABlab(46.51, -45.14, 39.58)
CIE-LCHlch(46.51, 60.03, 138.76°)
OKLaboklab(52.4% -0.1224 0.0908)
OKLCHoklch(52.4% 0.152 143.4)
XYZxyz(8.5825, 15.6515, 4.3186)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F25 #7F227C
analogous
#4E7F22 #227F25 #227F54
triadic
#227F25 #25227F #7F2522
tetradic
#227F25 #224E7F #7F227C #7F5422
square
#227F25 #224E7F #7F227C #7F5422
split-complementary
#227F25 #54227F #7F224E
monochromatic
#081E09 #154F17 #227F25 #2FAF33 #4CCF50

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227F25#FFFFFF#000000##FFFFFF
##227F251.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)
#827318
Deuteranopia (green-blind)
#776B2E
Tritanopia (blue-blind)
#027B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f25;
/* rgb */ color: rgb(34, 127, 37);
/* oklch */ color: oklch(52.4% 0.152 143.4);
Tailwind
colors: {
  custom: {
    50: '#6ca565',
    500: '#227f25',
    950: '#000000',
  },
}
SCSS
$custom: #227f25;
$custom-light: #6ca565;
$custom-dark: #000000;
JSON
{
  "hex": "#227f25",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 37
  },
  "hsl": {
    "h": 121.935,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52402,
    "c": 0.15243,
    "h": 143.4
  },
  "luminance": 0.15652
}

Semantic roles & 50–950 ramp

primary
#227F25
secondary
#B24BAE
accent
#47DCE1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #227F25

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

Preview Lab → · Contrast checker → · Palette generator →

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