#8A70B4#8A70B4

#8A70B4 is a mid, moderate violet. Relative luminance 0.203; OKLCH L 59.7% C 0.105 H 300.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8A70B4
RGBrgb(138, 112, 180)
HSLhsl(263, 31%, 57%)
HSVhsv(263, 38%, 71%)
CMYKcmyk(23.3%, 37.8%, 0%, 29.4%)
CIE-LABlab(52.16, 24.47, -32.33)
CIE-LCHlch(52.16, 40.55, 307.12°)
OKLaboklab(59.73% 0.0537 -0.0898)
OKLCHoklch(59.73% 0.105 300.9)
XYZxyz(24.5118, 20.2868, 45.7956)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A70B4 #9AB470
analogous
#7078B4 #8A70B4 #AC70B4
triadic
#8A70B4 #B48A70 #70B48A
tetradic
#8A70B4 #B47078 #9AB470 #70B4AC
square
#8A70B4 #B47078 #9AB470 #70B4AC
split-complementary
#8A70B4 #B4AC70 #78B470
monochromatic
#4F3A6F #6B4F97 #8A70B4 #AB98C9 #CCC0DE

Accessibility & contrast

On white

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

On black

5.06
#8A70B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A70B4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A70B4#FFFFFF#000000##000000
##8A70B41.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#607CB7
Deuteranopia (green-blind)
#647CB2
Tritanopia (blue-blind)
#827B89
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a70b4;
/* rgb */ color: rgb(138, 112, 180);
/* oklch */ color: oklch(59.7% 0.105 300.9);
Tailwind
colors: {
  custom: {
    50: '#ad99ca',
    500: '#8a70b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a70b4;
$custom-light: #ad99ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a70b4",
  "rgb": {
    "r": 138,
    "g": 112,
    "b": 180
  },
  "hsl": {
    "h": 262.941,
    "s": 31.193,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5973,
    "c": 0.10465,
    "h": 300.9
  },
  "luminance": 0.20287
}

Semantic roles & 50–950 ramp

primary
#8A70B4
secondary
#C3CEB2
accent
#C760A0
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A70B4

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

Preview Lab → · Contrast checker → · Palette generator →

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