#225212#225212

#225212 is a dark, moderate green. Relative luminance 0.064; OKLCH L 39.1% C 0.107 H 139.1°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#225212
RGBrgb(34, 82, 18)
HSLhsl(105, 64%, 20%)
HSVhsv(105, 78%, 32%)
CMYKcmyk(58.5%, 0%, 78%, 67.8%)
CIE-LABlab(30.44, -29.43, 30.97)
CIE-LCHlch(30.44, 42.72, 133.54°)
OKLaboklab(39.06% -0.081 0.0702)
OKLCHoklch(39.06% 0.107 139.1)
XYZxyz(3.7860, 6.4180, 1.6114)
Luminance0.0642 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#225212 #421252
analogous
#425212 #225212 #125222
triadic
#225212 #122252 #521222
tetradic
#225212 #124252 #421252 #522212
square
#225212 #124252 #421252 #522212
split-complementary
#225212 #221252 #521242
monochromatic
#0A1906 #0D2007 #225212 #37841D #4CB628

Accessibility & contrast

On white

9.20
#225212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#225212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #225212
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##225212#FFFFFF#000000##FFFFFF
##2252121.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A07
Deuteranopia (green-blind)
#4E4618
Tritanopia (blue-blind)
#1D4F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #225212;
/* rgb */ color: rgb(34, 82, 18);
/* oklch */ color: oklch(39.1% 0.107 139.1);
Tailwind
colors: {
  custom: {
    50: '#638354',
    500: '#225212',
    950: '#000000',
  },
}
SCSS
$custom: #225212;
$custom-light: #638354;
$custom-dark: #000000;
JSON
{
  "hex": "#225212",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 105,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.3906,
    "c": 0.10719,
    "h": 139.1
  },
  "luminance": 0.06418
}

Semantic roles & 50–950 ramp

primary
#225212
secondary
#75358B
accent
#41E7BD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #225212

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

Preview Lab → · Contrast checker → · Palette generator →

#225212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva