#70178F#70178F

#70178F is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.7% C 0.185 H 315.0°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#70178F
RGBrgb(112, 23, 143)
HSLhsl(285, 72%, 33%)
HSVhsv(285, 84%, 56%)
CMYKcmyk(21.7%, 83.9%, 0%, 43.9%)
CIE-LABlab(29.52, 54.26, -46.42)
CIE-LCHlch(29.52, 71.41, 319.45°)
OKLaboklab(41.69% 0.1311 -0.1312)
OKLCHoklch(41.69% 0.185 315)
XYZxyz(11.9456, 6.0412, 26.5181)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#70178F #368F17
analogous
#34178F #70178F #8F1772
triadic
#70178F #8F7017 #178F70
tetradic
#70178F #8F3417 #368F17 #17728F
square
#70178F #8F3417 #368F17 #17728F
split-complementary
#70178F #728F17 #178F34
monochromatic
#1D0626 #470F5A #70178F #991FC4 #B740E0

Accessibility & contrast

On white

9.51
#70178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#70178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #70178F
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##70178F#FFFFFF#000000##FFFFFF
##70178F1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#0E488D
Tritanopia (blue-blind)
#6D3555
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #70178f;
/* rgb */ color: rgb(112, 23, 143);
/* oklch */ color: oklch(41.7% 0.185 315.0);
Tailwind
colors: {
  custom: {
    50: '#9d61b1',
    500: '#70178f',
    950: '#000000',
  },
}
SCSS
$custom: #70178f;
$custom-light: #9d61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#70178f",
  "rgb": {
    "r": 112,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 284.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41693,
    "c": 0.18547,
    "h": 315
  },
  "luminance": 0.06041
}

Semantic roles & 50–950 ramp

primary
#70178F
secondary
#62C141
accent
#EF3968
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #70178F

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

Preview Lab → · Contrast checker → · Palette generator →

#70178F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva