#8318B4#8318B4

#8318B4 is a mid, highly saturated purple. Relative luminance 0.088; OKLCH L 47.4% C 0.222 H 311.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8318B4
RGBrgb(131, 24, 180)
HSLhsl(281, 76%, 40%)
HSVhsv(281, 87%, 71%)
CMYKcmyk(27.2%, 86.7%, 0%, 29.4%)
CIE-LABlab(35.55, 64.54, -58.90)
CIE-LCHlch(35.55, 87.38, 317.62°)
OKLaboklab(47.4% 0.1462 -0.1672)
OKLCHoklch(47.4% 0.222 311.2)
XYZxyz(17.9233, 8.7743, 43.9206)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8318B4 #49B418
analogous
#3518B4 #8318B4 #B41897
triadic
#8318B4 #B48318 #18B483
tetradic
#8318B4 #B43518 #49B418 #1897B4
square
#8318B4 #B43518 #49B418 #1897B4
split-complementary
#8318B4 #97B418 #18B435
monochromatic
#340A48 #5C117E #8318B4 #A727E2 #BD5DE9

Accessibility & contrast

On white

7.62
#8318B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8318B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8318B4
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8318B4#FFFFFF#000000##FFFFFF
##8318B41.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#7C446B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8318b4;
/* rgb */ color: rgb(131, 24, 180);
/* oklch */ color: oklch(47.4% 0.222 311.2);
Tailwind
colors: {
  custom: {
    50: '#ad67cb',
    500: '#8318b4',
    950: '#000000',
  },
}
SCSS
$custom: #8318b4;
$custom-light: #ad67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8318b4",
  "rgb": {
    "r": 131,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 281.154,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.47401,
    "c": 0.22215,
    "h": 311.2
  },
  "luminance": 0.08774
}

Semantic roles & 50–950 ramp

primary
#8318B4
secondary
#7FCD5B
accent
#F33571
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8318B4

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

Preview Lab → · Contrast checker → · Palette generator →

#8318B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva