#227A5F#227A5F

#227A5F is a mid, moderate teal. Relative luminance 0.151; OKLCH L 52.1% C 0.093 H 168.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#227A5F
RGBrgb(34, 122, 95)
HSLhsl(162, 56%, 31%)
HSVhsv(162, 72%, 48%)
CMYKcmyk(72.1%, 0%, 22.1%, 52.2%)
CIE-LABlab(45.75, -32.63, 7.42)
CIE-LCHlch(45.75, 33.47, 167.20°)
OKLaboklab(52.08% -0.0907 0.019)
OKLCHoklch(52.08% 0.093 168.2)
XYZxyz(9.6837, 15.0843, 13.2255)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A5F #7A223D
analogous
#227A33 #227A5F #22697A
triadic
#227A5F #5F227A #7A5F22
tetradic
#227A5F #33227A #7A223D #697A22
square
#227A5F #33227A #7A223D #697A22
split-complementary
#227A5F #7A2269 #7A3322
monochromatic
#071A14 #154A3A #227A5F #2FAA84 #4ACDA4

Accessibility & contrast

On white

5.23
#227A5F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#227A5F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A5F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A5F#FFFFFF#000000##FFFFFF
##227A5F1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77715E
Deuteranopia (green-blind)
#6B6961
Tritanopia (blue-blind)
#007B72
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227a5f;
/* rgb */ color: rgb(34, 122, 95);
/* oklch */ color: oklch(52.1% 0.093 168.2);
Tailwind
colors: {
  custom: {
    50: '#6aa18c',
    500: '#227a5f',
    950: '#000000',
  },
}
SCSS
$custom: #227a5f;
$custom-light: #6aa18c;
$custom-dark: #000000;
JSON
{
  "hex": "#227a5f",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 95
  },
  "hsl": {
    "h": 161.591,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52078,
    "c": 0.0927,
    "h": 168.2
  },
  "luminance": 0.15085
}

Semantic roles & 50–950 ramp

primary
#227A5F
secondary
#AD4B69
accent
#4877E0
background
#F6FAF8
surface
#ECF3F0
border
#C7CDCB
text
#070F0C
muted
#7A7F7D

Preview Lab

Preview with #227A5F

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

Preview Lab → · Contrast checker → · Palette generator →

#227A5F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva