#22851F#22851F

#22851F is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.1% C 0.164 H 142.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#22851F
RGBrgb(34, 133, 31)
HSLhsl(118, 62%, 32%)
HSVhsv(118, 77%, 52%)
CMYKcmyk(74.4%, 0%, 76.7%, 47.8%)
CIE-LABlab(48.53, -47.78, 44.06)
CIE-LCHlch(48.53, 65.00, 137.32°)
OKLaboklab(54.06% -0.1299 0.0994)
OKLCHoklch(54.06% 0.164 142.6)
XYZxyz(9.2940, 17.2130, 4.1287)
Luminance0.1721 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22851F #821F85
analogous
#55851F #22851F #1F854F
triadic
#22851F #1F2285 #851F22
tetradic
#22851F #1F5585 #821F85 #854F1F
square
#22851F #1F5585 #821F85 #854F1F
split-complementary
#22851F #4F1F85 #851F55
monochromatic
#092208 #155313 #22851F #2FB72B #4ED54A

Accessibility & contrast

On white

4.73
#22851F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#22851F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #22851F
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22851F#FFFFFF#000000##FFFFFF
##22851F1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780A
Deuteranopia (green-blind)
#7D702A
Tritanopia (blue-blind)
#008171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #22851f;
/* rgb */ color: rgb(34, 133, 31);
/* oklch */ color: oklch(54.1% 0.164 142.6);
Tailwind
colors: {
  custom: {
    50: '#6eaa62',
    500: '#22851f',
    950: '#000000',
  },
}
SCSS
$custom: #22851f;
$custom-light: #6eaa62;
$custom-dark: #000000;
JSON
{
  "hex": "#22851f",
  "rgb": {
    "r": 34,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 118.235,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54059,
    "c": 0.16356,
    "h": 142.6
  },
  "luminance": 0.17214
}

Semantic roles & 50–950 ramp

primary
#22851F
secondary
#B449B7
accent
#43E5E0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #22851F

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

Preview Lab → · Contrast checker → · Palette generator →

#22851F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva