#8A40C0#8A40C0

#8A40C0 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.195 H 307.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8A40C0
RGBrgb(138, 64, 192)
HSLhsl(275, 50%, 50%)
HSVhsv(275, 67%, 75%)
CMYKcmyk(28.1%, 66.7%, 0%, 24.7%)
CIE-LABlab(42.58, 53.71, -54.53)
CIE-LCHlch(42.58, 76.53, 314.57°)
OKLaboklab(52.85% 0.1187 -0.1544)
OKLCHoklch(52.85% 0.195 307.5)
XYZxyz(21.8271, 12.8761, 51.1944)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40C0 #76C040
analogous
#4A40C0 #8A40C0 #C040B6
triadic
#8A40C0 #C08A40 #40C08A
tetradic
#8A40C0 #C04A40 #76C040 #40B6C0
square
#8A40C0 #C04A40 #76C040 #40B6C0
split-complementary
#8A40C0 #B6C040 #40C04A
monochromatic
#482164 #693092 #8A40C0 #A66ECF #C29CDE

Accessibility & contrast

On white

5.87
#8A40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A40C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40C0
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40C0#FFFFFF#000000##FFFFFF
##8A40C01.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C4
Deuteranopia (green-blind)
#2465BD
Tritanopia (blue-blind)
#815B7B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a40c0;
/* rgb */ color: rgb(138, 64, 192);
/* oklch */ color: oklch(52.8% 0.195 307.5);
Tailwind
colors: {
  custom: {
    50: '#b07ad4',
    500: '#8a40c0',
    950: '#000000',
  },
}
SCSS
$custom: #8a40c0;
$custom-light: #b07ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40c0",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 274.688,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52847,
    "c": 0.19472,
    "h": 307.5
  },
  "luminance": 0.12876
}

Semantic roles & 50–950 ramp

primary
#8A40C0
secondary
#A9CB91
accent
#DA4E89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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