#8A40BF#8A40BF

#8A40BF is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.8% C 0.194 H 307.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A40BF
RGBrgb(138, 64, 191)
HSLhsl(275, 50%, 50%)
HSVhsv(275, 66%, 75%)
CMYKcmyk(27.7%, 66.5%, 0%, 25.1%)
CIE-LABlab(42.51, 53.48, -54.05)
CIE-LCHlch(42.51, 76.03, 314.69°)
OKLaboklab(52.78% 0.1188 -0.153)
OKLCHoklch(52.78% 0.194 307.8)
XYZxyz(21.7167, 12.8320, 50.6129)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40BF #75BF40
analogous
#4B40BF #8A40BF #BF40B4
triadic
#8A40BF #BF8A40 #40BF8A
tetradic
#8A40BF #BF4B40 #75BF40 #40B4BF
square
#8A40BF #BF4B40 #75BF40 #40B4BF
split-complementary
#8A40BF #B4BF40 #40BF4B
monochromatic
#482163 #693191 #8A40BF #A66ECE #C29CDE

Accessibility & contrast

On white

5.89
#8A40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40BF
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40BF#FFFFFF#000000##FFFFFF
##8A40BF1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#2565BC
Tritanopia (blue-blind)
#825B7A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a40bf;
/* rgb */ color: rgb(138, 64, 191);
/* oklch */ color: oklch(52.8% 0.194 307.8);
Tailwind
colors: {
  custom: {
    50: '#b07ad3',
    500: '#8a40bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a40bf;
$custom-light: #b07ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40bf",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 274.961,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.52777,
    "c": 0.19367,
    "h": 307.8
  },
  "luminance": 0.12832
}

Semantic roles & 50–950 ramp

primary
#8A40BF
secondary
#A9CA91
accent
#D94E88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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