#8A70B5#8A70B5

#8A70B5 is a mid, moderate violet. Relative luminance 0.203; OKLCH L 59.8% C 0.106 H 300.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A70B5
RGBrgb(138, 112, 181)
HSLhsl(263, 32%, 57%)
HSVhsv(263, 38%, 71%)
CMYKcmyk(23.8%, 38.1%, 0%, 29%)
CIE-LABlab(52.21, 24.71, -32.84)
CIE-LCHlch(52.21, 41.10, 306.96°)
OKLaboklab(59.78% 0.0539 -0.0913)
OKLCHoklch(59.78% 0.106 300.6)
XYZxyz(24.6141, 20.3277, 46.3340)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A70B5 #9BB570
analogous
#7078B5 #8A70B5 #AD70B5
triadic
#8A70B5 #B58A70 #70B58A
tetradic
#8A70B5 #B57078 #9BB570 #70B5AD
square
#8A70B5 #B57078 #9BB570 #70B5AD
split-complementary
#8A70B5 #B5AD70 #78B570
monochromatic
#4F3A70 #6B4F99 #8A70B5 #AB98CA #CCC1DF

Accessibility & contrast

On white

4.15
#8A70B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#8A70B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A70B5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A70B5#FFFFFF#000000##000000
##8A70B51.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F7CB8
Deuteranopia (green-blind)
#647CB3
Tritanopia (blue-blind)
#827B8A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a70b5;
/* rgb */ color: rgb(138, 112, 181);
/* oklch */ color: oklch(59.8% 0.106 300.6);
Tailwind
colors: {
  custom: {
    50: '#ad99cb',
    500: '#8a70b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a70b5;
$custom-light: #ad99cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a70b5",
  "rgb": {
    "r": 138,
    "g": 112,
    "b": 181
  },
  "hsl": {
    "h": 262.609,
    "s": 31.797,
    "l": 57.451
  },
  "oklch": {
    "l": 0.5978,
    "c": 0.10602,
    "h": 300.6
  },
  "luminance": 0.20328
}

Semantic roles & 50–950 ramp

primary
#8A70B5
secondary
#C4CEB2
accent
#C860A1
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A70B5

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

Preview Lab → · Contrast checker → · Palette generator →

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