#8A40B0#8A40B0

#8A40B0 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.178 H 312.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8A40B0
RGBrgb(138, 64, 176)
HSLhsl(280, 47%, 47%)
HSVhsv(280, 64%, 69%)
CMYKcmyk(21.6%, 63.6%, 0%, 31%)
CIE-LABlab(41.54, 50.12, -46.80)
CIE-LCHlch(41.54, 68.57, 316.96°)
OKLaboklab(51.77% 0.1197 -0.1317)
OKLCHoklch(51.77% 0.178 312.3)
XYZxyz(20.1497, 12.2052, 42.3603)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40B0 #66B040
analogous
#5240B0 #8A40B0 #B0409E
triadic
#8A40B0 #B08A40 #40B08A
tetradic
#8A40B0 #B05240 #66B040 #409EB0
square
#8A40B0 #B05240 #66B040 #409EB0
split-complementary
#8A40B0 #9EB040 #40B052
monochromatic
#441F56 #673083 #8A40B0 #A666C7 #C093D8

Accessibility & contrast

On white

6.10
#8A40B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8A40B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40B0
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40B0#FFFFFF#000000##FFFFFF
##8A40B01.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5EB3
Deuteranopia (green-blind)
#3764AD
Tritanopia (blue-blind)
#865572
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a40b0;
/* rgb */ color: rgb(138, 64, 176);
/* oklch */ color: oklch(51.8% 0.178 312.3);
Tailwind
colors: {
  custom: {
    50: '#af79c8',
    500: '#8a40b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a40b0;
$custom-light: #af79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40b0",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 279.643,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5177,
    "c": 0.17795,
    "h": 312.3
  },
  "luminance": 0.12205
}

Semantic roles & 50–950 ramp

primary
#8A40B0
secondary
#9DC389
accent
#D6517F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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