#225F12#225F12

#225F12 is a dark, vivid green. Relative luminance 0.086; OKLCH L 42.9% C 0.125 H 140.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#225F12
RGBrgb(34, 95, 18)
HSLhsl(108, 68%, 22%)
HSVhsv(108, 81%, 37%)
CMYKcmyk(64.2%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.14, -34.83, 35.67)
CIE-LCHlch(35.14, 49.85, 134.32°)
OKLaboklab(42.94% -0.0956 0.08)
OKLCHoklch(42.94% 0.125 140.1)
XYZxyz(4.8609, 8.5677, 1.9697)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#225F12 #4F125F
analogous
#495F12 #225F12 #125F28
triadic
#225F12 #12225F #5F1222
tetradic
#225F12 #12495F #4F125F #5F2812
square
#225F12 #12495F #4F125F #5F2812
split-complementary
#225F12 #28125F #5F1249
monochromatic
#091A05 #102C08 #225F12 #34921C #47C625

Accessibility & contrast

On white

7.74
#225F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#225F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #225F12
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##225F12#FFFFFF#000000##FFFFFF
##225F121.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#5A511A
Tritanopia (blue-blind)
#1A5C50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #225f12;
/* rgb */ color: rgb(34, 95, 18);
/* oklch */ color: oklch(42.9% 0.125 140.1);
Tailwind
colors: {
  custom: {
    50: '#668d56',
    500: '#225f12',
    950: '#000000',
  },
}
SCSS
$custom: #225f12;
$custom-light: #668d56;
$custom-dark: #000000;
JSON
{
  "hex": "#225f12",
  "rgb": {
    "r": 34,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 107.532,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42935,
    "c": 0.12464,
    "h": 140.1
  },
  "luminance": 0.08568
}

Semantic roles & 50–950 ramp

primary
#225F12
secondary
#833697
accent
#3DEBC7
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C03
muted
#7A7D78

Preview Lab

Preview with #225F12

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

Preview Lab → · Contrast checker → · Palette generator →

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