#8A43B2#8A43B2

#8A43B2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.176 H 311.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A43B2
RGBrgb(138, 67, 178)
HSLhsl(278, 45%, 48%)
HSVhsv(278, 62%, 70%)
CMYKcmyk(22.5%, 62.4%, 0%, 30.2%)
CIE-LABlab(42.20, 49.08, -46.91)
CIE-LCHlch(42.20, 67.90, 316.30°)
OKLaboklab(52.29% 0.1159 -0.1321)
OKLCHoklch(52.29% 0.176 311.3)
XYZxyz(20.5228, 12.6324, 43.4680)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A43B2 #6BB243
analogous
#5243B2 #8A43B2 #B243A2
triadic
#8A43B2 #B28A43 #43B28A
tetradic
#8A43B2 #B25243 #6BB243 #43A2B2
square
#8A43B2 #B25243 #6BB243 #43A2B2
split-complementary
#8A43B2 #A2B243 #43B252
monochromatic
#452259 #683286 #8A43B2 #A66BC7 #C197D8

Accessibility & contrast

On white

5.96
#8A43B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A43B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A43B2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A43B2#FFFFFF#000000##FFFFFF
##8A43B21.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1360B5
Deuteranopia (green-blind)
#3865AF
Tritanopia (blue-blind)
#855874
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a43b2;
/* rgb */ color: rgb(138, 67, 178);
/* oklch */ color: oklch(52.3% 0.176 311.3);
Tailwind
colors: {
  custom: {
    50: '#af7bca',
    500: '#8a43b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a43b2;
$custom-light: #af7bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a43b2",
  "rgb": {
    "r": 138,
    "g": 67,
    "b": 178
  },
  "hsl": {
    "h": 278.378,
    "s": 45.306,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5229,
    "c": 0.17573,
    "h": 311.3
  },
  "luminance": 0.12632
}

Semantic roles & 50–950 ramp

primary
#8A43B2
secondary
#A1C48D
accent
#D55382
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A43B2

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

Preview Lab → · Contrast checker → · Palette generator →

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