#8A70B2#8A70B2

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

Color values

HEX#8A70B2
RGBrgb(138, 112, 178)
HSLhsl(264, 30%, 57%)
HSVhsv(264, 37%, 70%)
CMYKcmyk(22.5%, 37.1%, 0%, 30.2%)
CIE-LABlab(52.07, 23.98, -31.32)
CIE-LCHlch(52.07, 39.44, 307.44°)
OKLaboklab(59.63% 0.0533 -0.0869)
OKLCHoklch(59.63% 0.102 301.5)
XYZxyz(24.3095, 20.2059, 44.7303)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A70B2 #98B270
analogous
#7077B2 #8A70B2 #AB70B2
triadic
#8A70B2 #B28A70 #70B28A
tetradic
#8A70B2 #B27077 #98B270 #70B2AB
square
#8A70B2 #B27077 #98B270 #70B2AB
split-complementary
#8A70B2 #B2AB70 #77B270
monochromatic
#4E3B6D #6B5095 #8A70B2 #AB98C7 #CBC0DD

Accessibility & contrast

On white

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

On black

5.04
#8A70B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A70B2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A70B2#FFFFFF#000000##000000
##8A70B21.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#607CB5
Deuteranopia (green-blind)
#657CB0
Tritanopia (blue-blind)
#837B89
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a70b2;
/* rgb */ color: rgb(138, 112, 178);
/* oklch */ color: oklch(59.6% 0.102 301.5);
Tailwind
colors: {
  custom: {
    50: '#ad99c9',
    500: '#8a70b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a70b2;
$custom-light: #ad99c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a70b2",
  "rgb": {
    "r": 138,
    "g": 112,
    "b": 178
  },
  "hsl": {
    "h": 263.636,
    "s": 30,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59631,
    "c": 0.10192,
    "h": 301.5
  },
  "luminance": 0.20206
}

Semantic roles & 50–950 ramp

primary
#8A70B2
secondary
#C2CCB1
accent
#C6629F
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A70B2

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

Preview Lab → · Contrast checker → · Palette generator →

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