#8A70CC#8A70CC

#8A70CC is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.0% C 0.137 H 295.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8A70CC
RGBrgb(138, 112, 204)
HSLhsl(257, 47%, 62%)
HSVhsv(257, 45%, 80%)
CMYKcmyk(32.4%, 45.1%, 0%, 20%)
CIE-LABlab(53.33, 30.54, -44.25)
CIE-LCHlch(53.33, 53.77, 304.61°)
OKLaboklab(61% 0.0581 -0.1244)
OKLCHoklch(61% 0.137 295)
XYZxyz(27.1718, 21.3508, 59.8046)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A70CC #B2CC70
analogous
#7084CC #8A70CC #B870CC
triadic
#8A70CC #CC8A70 #70CC8A
tetradic
#8A70CC #CC7084 #B2CC70 #70CCB8
square
#8A70CC #CC7084 #B2CC70 #70CCB8
split-complementary
#8A70CC #CCB870 #84CC70
monochromatic
#4D338F #6543BC #8A70CC #AF9DDC #D4CAEC

Accessibility & contrast

On white

3.98
#8A70CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#8A70CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A70CC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A70CC#FFFFFF#000000##000000
##8A70CC1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5380CF
Deuteranopia (green-blind)
#577ECA
Tritanopia (blue-blind)
#7B8194
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a70cc;
/* rgb */ color: rgb(138, 112, 204);
/* oklch */ color: oklch(61.0% 0.137 295.0);
Tailwind
colors: {
  custom: {
    50: '#af99dc',
    500: '#8a70cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a70cc;
$custom-light: #af99dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a70cc",
  "rgb": {
    "r": 138,
    "g": 112,
    "b": 204
  },
  "hsl": {
    "h": 256.957,
    "s": 47.423,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60999,
    "c": 0.13729,
    "h": 295
  },
  "luminance": 0.21351
}

Semantic roles & 50–950 ramp

primary
#8A70CC
secondary
#D3DDBB
accent
#BB2B92
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A70CC

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

Preview Lab → · Contrast checker → · Palette generator →

#8A70CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva