#70228B#70228B

#70228B is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.171 H 315.7°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#70228B
RGBrgb(112, 34, 139)
HSLhsl(285, 61%, 34%)
HSVhsv(285, 76%, 55%)
CMYKcmyk(19.4%, 75.5%, 0%, 45.5%)
CIE-LABlab(30.53, 49.68, -42.31)
CIE-LCHlch(30.53, 65.25, 319.58°)
OKLaboklab(42.31% 0.1223 -0.1192)
OKLCHoklch(42.31% 0.171 315.7)
XYZxyz(11.9136, 6.4533, 25.0392)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#70228B #3D8B22
analogous
#3B228B #70228B #8B2272
triadic
#70228B #8B7022 #228B70
tetradic
#70228B #8B3B22 #3D8B22 #22728B
square
#70228B #8B3B22 #3D8B22 #22728B
split-complementary
#70228B #728B22 #228B3B
monochromatic
#210A29 #48165A #70228B #982EBC #B353D5

Accessibility & contrast

On white

9.17
#70228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#70228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #70228B
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##70228B#FFFFFF#000000##FFFFFF
##70228B1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#204A89
Tritanopia (blue-blind)
#6E3955
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #70228b;
/* rgb */ color: rgb(112, 34, 139);
/* oklch */ color: oklch(42.3% 0.171 315.7);
Tailwind
colors: {
  custom: {
    50: '#9d66ad',
    500: '#70228b',
    950: '#000000',
  },
}
SCSS
$custom: #70228b;
$custom-light: #9d66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#70228b",
  "rgb": {
    "r": 112,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 284.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42314,
    "c": 0.1708,
    "h": 315.7
  },
  "luminance": 0.06453
}

Semantic roles & 50–950 ramp

primary
#70228B
secondary
#6BB850
accent
#E4446D
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #70228B

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

Preview Lab → · Contrast checker → · Palette generator →

#70228B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva