#22841B#22841B

#22841B is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.7% C 0.165 H 142.1°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#22841B
RGBrgb(34, 132, 27)
HSLhsl(116, 66%, 31%)
HSVhsv(116, 80%, 52%)
CMYKcmyk(74.2%, 0%, 79.5%, 48.2%)
CIE-LABlab(48.16, -47.74, 45.13)
CIE-LCHlch(48.16, 65.70, 136.61°)
OKLaboklab(53.75% -0.13 0.1011)
OKLCHoklch(53.75% 0.165 142.1)
XYZxyz(9.1083, 16.9207, 3.8227)
Luminance0.1692 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22841B #7D1B84
analogous
#56841B #22841B #1B8448
triadic
#22841B #1B2284 #841B22
tetradic
#22841B #1B5684 #7D1B84 #84481B
square
#22841B #1B5684 #7D1B84 #84481B
split-complementary
#22841B #481B84 #841B56
monochromatic
#081E06 #155111 #22841B #2FB725 #4BD841

Accessibility & contrast

On white

4.79
#22841B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#22841B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #22841B
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22841B#FFFFFF#000000##FFFFFF
##22841B1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877701
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#018070
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #22841b;
/* rgb */ color: rgb(34, 132, 27);
/* oklch */ color: oklch(53.7% 0.165 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ea960',
    500: '#22841b',
    950: '#000000',
  },
}
SCSS
$custom: #22841b;
$custom-light: #6ea960;
$custom-dark: #000000;
JSON
{
  "hex": "#22841b",
  "rgb": {
    "r": 34,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 116,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53746,
    "c": 0.16464,
    "h": 142.1
  },
  "luminance": 0.16922
}

Semantic roles & 50–950 ramp

primary
#22841B
secondary
#B043B7
accent
#3FE9DE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #22841B

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

Preview Lab → · Contrast checker → · Palette generator →

#22841B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva