#8A55B2#8A55B2

#8A55B2 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.9% C 0.148 H 308.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A55B2
RGBrgb(138, 85, 178)
HSLhsl(274, 38%, 52%)
HSVhsv(274, 52%, 70%)
CMYKcmyk(22.5%, 52.2%, 0%, 30.2%)
CIE-LABlab(45.79, 39.55, -41.19)
CIE-LCHlch(45.79, 57.11, 313.83°)
OKLaboklab(54.92% 0.0922 -0.1154)
OKLCHoklch(54.92% 0.148 308.6)
XYZxyz(21.7640, 15.1149, 43.8818)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A55B2 #7DB255
analogous
#5C55B2 #8A55B2 #B255AC
triadic
#8A55B2 #B28A55 #55B28A
tetradic
#8A55B2 #B25C55 #7DB255 #55ACB2
square
#8A55B2 #B25C55 #7DB255 #55ACB2
split-complementary
#8A55B2 #ACB255 #55B25C
monochromatic
#4A2C61 #6A3F8B #8A55B2 #A77FC5 #C4A9D8

Accessibility & contrast

On white

5.22
#8A55B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#8A55B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A55B2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A55B2#FFFFFF#000000##FFFFFF
##8A55B21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6AB5
Deuteranopia (green-blind)
#4B6DB0
Tritanopia (blue-blind)
#84657B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a55b2;
/* rgb */ color: rgb(138, 85, 178);
/* oklch */ color: oklch(54.9% 0.148 308.6);
Tailwind
colors: {
  custom: {
    50: '#ae87c9',
    500: '#8a55b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a55b2;
$custom-light: #ae87c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a55b2",
  "rgb": {
    "r": 138,
    "g": 85,
    "b": 178
  },
  "hsl": {
    "h": 274.194,
    "s": 37.652,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54918,
    "c": 0.14774,
    "h": 308.6
  },
  "luminance": 0.15115
}

Semantic roles & 50–950 ramp

primary
#8A55B2
secondary
#AFC69D
accent
#CE5A8C
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A55B2

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

Preview Lab → · Contrast checker → · Palette generator →

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