#8A4FD3#8A4FD3

#8A4FD3 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.1% C 0.195 H 300.8°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A4FD3
RGBrgb(138, 79, 211)
HSLhsl(267, 60%, 57%)
HSVhsv(267, 63%, 83%)
CMYKcmyk(34.6%, 62.6%, 0%, 17.3%)
CIE-LABlab(46.58, 50.77, -59.05)
CIE-LCHlch(46.58, 77.88, 310.69°)
OKLaboklab(56.14% 0.1001 -0.1677)
OKLCHoklch(56.14% 0.195 300.8)
XYZxyz(25.0323, 15.6982, 63.3267)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FD3 #98D34F
analogous
#4F56D3 #8A4FD3 #CC4FD3
triadic
#8A4FD3 #D38A4F #4FD38A
tetradic
#8A4FD3 #D34F56 #98D34F #4FD3CC
square
#8A4FD3 #D34F56 #98D34F #4FD3CC
split-complementary
#8A4FD3 #D3CC4F #56D34F
monochromatic
#4E2286 #6B2EB7 #8A4FD3 #AB80DF #CBB1EB

Accessibility & contrast

On white

5.07
#8A4FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8A4FD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FD3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FD3#FFFFFF#000000##FFFFFF
##8A4FD31.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED7
Deuteranopia (green-blind)
#1D6ED0
Tritanopia (blue-blind)
#7B6C8A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4fd3;
/* rgb */ color: rgb(138, 79, 211);
/* oklch */ color: oklch(56.1% 0.195 300.8);
Tailwind
colors: {
  custom: {
    50: '#b183e1',
    500: '#8a4fd3',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fd3;
$custom-light: #b183e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fd3",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 211
  },
  "hsl": {
    "h": 266.818,
    "s": 60,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56136,
    "c": 0.19536,
    "h": 300.8
  },
  "luminance": 0.15698
}

Semantic roles & 50–950 ramp

primary
#8A4FD3
secondary
#C2DAA4
accent
#E3459C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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