#8A3DDB#8A3DDB

#8A3DDB is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.5% C 0.226 H 301.4°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A3DDB
RGBrgb(138, 61, 219)
HSLhsl(269, 69%, 55%)
HSVhsv(269, 72%, 86%)
CMYKcmyk(37%, 72.1%, 0%, 14.1%)
CIE-LABlab(44.02, 61.35, -67.77)
CIE-LCHlch(44.02, 91.41, 312.15°)
OKLaboklab(54.49% 0.1178 -0.1933)
OKLCHoklch(54.49% 0.226 301.4)
XYZxyz(24.9331, 13.8551, 68.3648)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DDB #8EDB3D
analogous
#3D3FDB #8A3DDB #D93DDB
triadic
#8A3DDB #DB8A3D #3DDB8A
tetradic
#8A3DDB #DB3D3F #8EDB3D #3DDBD9
square
#8A3DDB #DB3D3F #8EDB3D #3DDBD9
split-complementary
#8A3DDB #DBD93D #3FDB3D
monochromatic
#4D1985 #6B22B9 #8A3DDB #A971E5 #C8A4EE

Accessibility & contrast

On white

5.57
#8A3DDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8A3DDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DDB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DDB#FFFFFF#000000##FFFFFF
##8A3DDB1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E0
Deuteranopia (green-blind)
#0067D8
Tritanopia (blue-blind)
#786489
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a3ddb;
/* rgb */ color: rgb(138, 61, 219);
/* oklch */ color: oklch(54.5% 0.226 301.4);
Tailwind
colors: {
  custom: {
    50: '#b379e7',
    500: '#8a3ddb',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ddb;
$custom-light: #b379e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ddb",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 219
  },
  "hsl": {
    "h": 269.241,
    "s": 68.696,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54489,
    "c": 0.22634,
    "h": 301.4
  },
  "luminance": 0.13855
}

Semantic roles & 50–950 ramp

primary
#8A3DDB
secondary
#BBDB99
accent
#EC3C96
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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