#8A4FD2#8A4FD2

#8A4FD2 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.1% C 0.194 H 301.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A4FD2
RGBrgb(138, 79, 210)
HSLhsl(267, 59%, 57%)
HSVhsv(267, 62%, 82%)
CMYKcmyk(34.3%, 62.4%, 0%, 17.6%)
CIE-LABlab(46.51, 50.53, -58.59)
CIE-LCHlch(46.51, 77.37, 310.77°)
OKLaboklab(56.07% 0.1002 -0.1664)
OKLCHoklch(56.07% 0.194 301.1)
XYZxyz(24.9073, 15.6482, 62.6685)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FD2 #97D24F
analogous
#4F56D2 #8A4FD2 #CC4FD2
triadic
#8A4FD2 #D28A4F #4FD28A
tetradic
#8A4FD2 #D24F56 #97D24F #4FD2CC
square
#8A4FD2 #D24F56 #97D24F #4FD2CC
split-complementary
#8A4FD2 #D2CC4F #56D24F
monochromatic
#4E2285 #6B2EB5 #8A4FD2 #AA80DE #CBB0EB

Accessibility & contrast

On white

5.09
#8A4FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8A4FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FD2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FD2#FFFFFF#000000##FFFFFF
##8A4FD21.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#1F6DCF
Tritanopia (blue-blind)
#7B6B89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4fd2;
/* rgb */ color: rgb(138, 79, 210);
/* oklch */ color: oklch(56.1% 0.194 301.1);
Tailwind
colors: {
  custom: {
    50: '#b183e1',
    500: '#8a4fd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fd2;
$custom-light: #b183e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fd2",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 267.023,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56067,
    "c": 0.19421,
    "h": 301.1
  },
  "luminance": 0.15648
}

Semantic roles & 50–950 ramp

primary
#8A4FD2
secondary
#C1D9A4
accent
#E2459C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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