#227942#227942

#227942 is a mid, moderate green. Relative luminance 0.144; OKLCH L 51.1% C 0.119 H 151.6°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#227942
RGBrgb(34, 121, 66)
HSLhsl(142, 56%, 30%)
HSVhsv(142, 72%, 47%)
CMYKcmyk(71.9%, 0%, 45.5%, 52.5%)
CIE-LABlab(44.81, -38.70, 22.91)
CIE-LCHlch(44.81, 44.97, 149.38°)
OKLaboklab(51.11% -0.1043 0.0565)
OKLCHoklch(51.11% 0.119 151.6)
XYZxyz(8.4797, 14.4072, 7.4872)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227942 #792259
analogous
#2D7922 #227942 #22796D
triadic
#227942 #422279 #794222
tetradic
#227942 #222D79 #792259 #796D22
square
#227942 #222D79 #792259 #796D22
split-complementary
#227942 #6D2279 #79222D
monochromatic
#07190E #154928 #227942 #2FA95C #49CC79

Accessibility & contrast

On white

5.41
#227942 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#227942 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227942
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227942#FFFFFF#000000##FFFFFF
##2279421.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F3E
Deuteranopia (green-blind)
#6F6746
Tritanopia (blue-blind)
#00776C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227942;
/* rgb */ color: rgb(34, 121, 66);
/* oklch */ color: oklch(51.1% 0.119 151.6);
Tailwind
colors: {
  custom: {
    50: '#6aa077',
    500: '#227942',
    950: '#000000',
  },
}
SCSS
$custom: #227942;
$custom-light: #6aa077;
$custom-dark: #000000;
JSON
{
  "hex": "#227942",
  "rgb": {
    "r": 34,
    "g": 121,
    "b": 66
  },
  "hsl": {
    "h": 142.069,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51109,
    "c": 0.11861,
    "h": 151.6
  },
  "luminance": 0.14408
}

Semantic roles & 50–950 ramp

primary
#227942
secondary
#AC4B88
accent
#48A8DF
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070F08
muted
#7A7E7B

Preview Lab

Preview with #227942

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

Preview Lab → · Contrast checker → · Palette generator →

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