#70228E#70228E

#70228E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.174 H 314.6°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#70228E
RGBrgb(112, 34, 142)
HSLhsl(283, 61%, 35%)
HSVhsv(283, 76%, 56%)
CMYKcmyk(21.1%, 76.1%, 0%, 44.3%)
CIE-LABlab(30.74, 50.30, -43.82)
CIE-LCHlch(30.74, 66.72, 318.94°)
OKLaboklab(42.53% 0.1219 -0.1236)
OKLCHoklch(42.53% 0.174 314.6)
XYZxyz(12.1358, 6.5422, 26.2094)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#70228E #408E22
analogous
#3A228E #70228E #8E2276
triadic
#70228E #8E7022 #228E70
tetradic
#70228E #8E3A22 #408E22 #22768E
square
#70228E #8E3A22 #408E22 #22768E
split-complementary
#70228E #768E22 #228E3A
monochromatic
#220A2B #49165D #70228E #972EBF #B254D6

Accessibility & contrast

On white

9.10
#70228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#70228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #70228E
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##70228E#FFFFFF#000000##FFFFFF
##70228E1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#1C4A8C
Tritanopia (blue-blind)
#6D3A56
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #70228e;
/* rgb */ color: rgb(112, 34, 142);
/* oklch */ color: oklch(42.5% 0.174 314.6);
Tailwind
colors: {
  custom: {
    50: '#9d66b0',
    500: '#70228e',
    950: '#000000',
  },
}
SCSS
$custom: #70228e;
$custom-light: #9d66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#70228e",
  "rgb": {
    "r": 112,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 283.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42532,
    "c": 0.17363,
    "h": 314.6
  },
  "luminance": 0.06542
}

Semantic roles & 50–950 ramp

primary
#70228E
secondary
#6FBA52
accent
#E44370
background
#FAF6FA
surface
#F3EBF5
border
#CDC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #70228E

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

Preview Lab → · Contrast checker → · Palette generator →

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