#70227D#70227D

#70227D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.3% C 0.158 H 321.6°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#70227D
RGBrgb(112, 34, 125)
HSLhsl(291, 57%, 31%)
HSVhsv(291, 73%, 49%)
CMYKcmyk(10.4%, 72.8%, 0%, 51%)
CIE-LABlab(29.59, 46.83, -35.07)
CIE-LCHlch(29.59, 58.51, 323.17°)
OKLaboklab(41.34% 0.1236 -0.098)
OKLCHoklch(41.34% 0.158 321.6)
XYZxyz(10.9554, 6.0701, 19.9926)
Luminance0.0607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#70227D #2F7D22
analogous
#42227D #70227D #7D225C
triadic
#70227D #7D7022 #227D70
tetradic
#70227D #7D4222 #2F7D22 #225C7D
square
#70227D #7D4222 #2F7D22 #225C7D
split-complementary
#70227D #5C7D22 #227D42
monochromatic
#1A081D #45154D #70227D #9B2FAD #BB4BCE

Accessibility & contrast

On white

9.49
#70227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#70227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #70227D
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##70227D#FFFFFF#000000##FFFFFF
##70227D1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#2D497B
Tritanopia (blue-blind)
#71324D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #70227d;
/* rgb */ color: rgb(112, 34, 125);
/* oklch */ color: oklch(41.3% 0.158 321.6);
Tailwind
colors: {
  custom: {
    50: '#9c65a3',
    500: '#70227d',
    950: '#000000',
  },
}
SCSS
$custom: #70227d;
$custom-light: #9c65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#70227d",
  "rgb": {
    "r": 112,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 291.429,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41344,
    "c": 0.15772,
    "h": 321.6
  },
  "luminance": 0.06069
}

Semantic roles & 50–950 ramp

primary
#70227D
secondary
#5AB04B
accent
#E0475D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F060F
muted
#7E7A7F

Preview Lab

Preview with #70227D

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

Preview Lab → · Contrast checker → · Palette generator →

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