#8A70B1#8A70B1

#8A70B1 is a mid, moderate violet. Relative luminance 0.202; OKLCH L 59.6% C 0.101 H 301.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A70B1
RGBrgb(138, 112, 177)
HSLhsl(264, 29%, 57%)
HSVhsv(264, 37%, 69%)
CMYKcmyk(22%, 36.7%, 0%, 30.6%)
CIE-LABlab(52.02, 23.74, -30.81)
CIE-LCHlch(52.02, 38.89, 307.62°)
OKLaboklab(59.58% 0.053 -0.0854)
OKLCHoklch(59.58% 0.101 301.8)
XYZxyz(24.2095, 20.1659, 44.2034)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A70B1 #97B170
analogous
#7077B1 #8A70B1 #AB70B1
triadic
#8A70B1 #B18A70 #70B18A
tetradic
#8A70B1 #B17077 #97B170 #70B1AB
square
#8A70B1 #B17077 #97B170 #70B1AB
split-complementary
#8A70B1 #B1AB70 #77B170
monochromatic
#4E3B6C #6B5093 #8A70B1 #AA98C7 #CBBFDC

Accessibility & contrast

On white

4.17
#8A70B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#8A70B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A70B1
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A70B1#FFFFFF#000000##000000
##8A70B11.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#617CB4
Deuteranopia (green-blind)
#667CAF
Tritanopia (blue-blind)
#837A88
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a70b1;
/* rgb */ color: rgb(138, 112, 177);
/* oklch */ color: oklch(59.6% 0.101 301.8);
Tailwind
colors: {
  custom: {
    50: '#ad99c8',
    500: '#8a70b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a70b1;
$custom-light: #ad99c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a70b1",
  "rgb": {
    "r": 138,
    "g": 112,
    "b": 177
  },
  "hsl": {
    "h": 264,
    "s": 29.412,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59582,
    "c": 0.10055,
    "h": 301.8
  },
  "luminance": 0.20166
}

Semantic roles & 50–950 ramp

primary
#8A70B1
secondary
#C1CCB1
accent
#C6629E
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A70B1

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

Preview Lab → · Contrast checker → · Palette generator →

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