#225812#225812

#225812 is a dark, moderate green. Relative luminance 0.074; OKLCH L 40.9% C 0.115 H 139.6°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#225812
RGBrgb(34, 88, 18)
HSLhsl(106, 66%, 21%)
HSVhsv(106, 80%, 35%)
CMYKcmyk(61.4%, 0%, 79.5%, 65.5%)
CIE-LABlab(32.62, -31.98, 33.17)
CIE-LCHlch(32.62, 46.08, 133.95°)
OKLaboklab(40.85% -0.0879 0.0748)
OKLCHoklch(40.85% 0.115 139.6)
XYZxyz(4.2584, 7.3628, 1.7689)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#225812 #481258
analogous
#455812 #225812 #125825
triadic
#225812 #122258 #581222
tetradic
#225812 #124558 #481258 #582512
square
#225812 #124558 #481258 #582512
split-complementary
#225812 #251258 #581245
monochromatic
#0A1905 #0E2508 #225812 #368B1C #49BE27

Accessibility & contrast

On white

8.49
#225812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#225812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #225812
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##225812#FFFFFF#000000##FFFFFF
##2258121.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F05
Deuteranopia (green-blind)
#544B19
Tritanopia (blue-blind)
#1C554A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #225812;
/* rgb */ color: rgb(34, 88, 18);
/* oklch */ color: oklch(40.9% 0.115 139.6);
Tailwind
colors: {
  custom: {
    50: '#648855',
    500: '#225812',
    950: '#000000',
  },
}
SCSS
$custom: #225812;
$custom-light: #648855;
$custom-dark: #000000;
JSON
{
  "hex": "#225812",
  "rgb": {
    "r": 34,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 106.286,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40854,
    "c": 0.11541,
    "h": 139.6
  },
  "luminance": 0.07363
}

Semantic roles & 50–950 ramp

primary
#225812
secondary
#7C3591
accent
#3FE9C2
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #225812

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

Preview Lab → · Contrast checker → · Palette generator →

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