#70227E#70227E

#70227E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.4% C 0.159 H 321.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#70227E
RGBrgb(112, 34, 126)
HSLhsl(291, 58%, 31%)
HSVhsv(291, 73%, 49%)
CMYKcmyk(11.1%, 73%, 0%, 50.6%)
CIE-LABlab(29.65, 47.03, -35.60)
CIE-LCHlch(29.65, 58.98, 322.87°)
OKLaboklab(41.41% 0.1235 -0.0995)
OKLCHoklch(41.41% 0.159 321.1)
XYZxyz(11.0196, 6.0957, 20.3308)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#70227E #307E22
analogous
#42227E #70227E #7E225E
triadic
#70227E #7E7022 #227E70
tetradic
#70227E #7E4222 #307E22 #225E7E
square
#70227E #7E4222 #307E22 #225E7E
split-complementary
#70227E #5E7E22 #227E42
monochromatic
#1A081E #45154E #70227E #9B2FAE #BB4CCF

Accessibility & contrast

On white

9.46
#70227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#70227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #70227E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##70227E#FFFFFF#000000##FFFFFF
##70227E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#2D497C
Tritanopia (blue-blind)
#71334E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #70227e;
/* rgb */ color: rgb(112, 34, 126);
/* oklch */ color: oklch(41.4% 0.159 321.1);
Tailwind
colors: {
  custom: {
    50: '#9c65a4',
    500: '#70227e',
    950: '#000000',
  },
}
SCSS
$custom: #70227e;
$custom-light: #9c65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#70227e",
  "rgb": {
    "r": 112,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 290.87,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41411,
    "c": 0.15864,
    "h": 321.1
  },
  "luminance": 0.06095
}

Semantic roles & 50–950 ramp

primary
#70227E
secondary
#5BB14B
accent
#E1475E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F060F
muted
#7E7A7F

Preview Lab

Preview with #70227E

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

Preview Lab → · Contrast checker → · Palette generator →

#70227E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva