#225F28#225F28

#225F28 is a dark, moderate green. Relative luminance 0.087; OKLCH L 43.2% C 0.107 H 145.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#225F28
RGBrgb(34, 95, 40)
HSLhsl(126, 47%, 25%)
HSVhsv(126, 64%, 37%)
CMYKcmyk(64.2%, 0%, 57.9%, 62.7%)
CIE-LABlab(35.36, -32.35, 25.49)
CIE-LCHlch(35.36, 41.18, 141.76°)
OKLaboklab(43.18% -0.0876 0.061)
OKLCHoklch(43.18% 0.107 145.2)
XYZxyz(5.1346, 8.6772, 3.4114)
Luminance0.0868 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#225F28 #5F2259
analogous
#3A5F22 #225F28 #225F47
triadic
#225F28 #28225F #5F2822
tetradic
#225F28 #223A5F #5F2259 #5F4722
square
#225F28 #223A5F #5F2259 #5F4722
split-complementary
#225F28 #47225F #5F223A
monochromatic
#081709 #123215 #225F28 #328C3B #42B94E

Accessibility & contrast

On white

7.68
#225F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#225F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #225F28
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##225F28#FFFFFF#000000##FFFFFF
##225F281.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615623
Deuteranopia (green-blind)
#59512C
Tritanopia (blue-blind)
#155D53
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #225f28;
/* rgb */ color: rgb(34, 95, 40);
/* oklch */ color: oklch(43.2% 0.107 145.2);
Tailwind
colors: {
  custom: {
    50: '#658d63',
    500: '#225f28',
    950: '#000000',
  },
}
SCSS
$custom: #225f28;
$custom-light: #658d63;
$custom-dark: #000000;
JSON
{
  "hex": "#225f28",
  "rgb": {
    "r": 34,
    "g": 95,
    "b": 40
  },
  "hsl": {
    "h": 125.902,
    "s": 47.287,
    "l": 25.294
  },
  "oklch": {
    "l": 0.43184,
    "c": 0.10673,
    "h": 145.2
  },
  "luminance": 0.08678
}

Semantic roles & 50–950 ramp

primary
#225F28
secondary
#934A8C
accent
#51CAD7
background
#F6F8F6
surface
#EBF0EB
border
#C6CBC6
text
#060C05
muted
#7A7D7A

Preview Lab

Preview with #225F28

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

Preview Lab → · Contrast checker → · Palette generator →

#225F28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva