#8018B4#8018B4

#8018B4 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 47.0% C 0.221 H 310.0°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#8018B4
RGBrgb(128, 24, 180)
HSLhsl(280, 76%, 40%)
HSVhsv(280, 87%, 71%)
CMYKcmyk(28.9%, 86.7%, 0%, 29.4%)
CIE-LABlab(35.08, 64.09, -59.68)
CIE-LCHlch(35.08, 87.58, 317.04°)
OKLaboklab(46.98% 0.1422 -0.1696)
OKLCHoklch(46.98% 0.221 310)
XYZxyz(17.4653, 8.5381, 43.8991)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8018B4 #4CB418
analogous
#3218B4 #8018B4 #B4189A
triadic
#8018B4 #B48018 #18B480
tetradic
#8018B4 #B43218 #4CB418 #189AB4
square
#8018B4 #B43218 #4CB418 #189AB4
split-complementary
#8018B4 #9AB418 #18B432
monochromatic
#330A48 #5A117E #8018B4 #A427E2 #BB5DE9

Accessibility & contrast

On white

7.76
#8018B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8018B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8018B4
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8018B4#FFFFFF#000000##FFFFFF
##8018B41.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#78456B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8018b4;
/* rgb */ color: rgb(128, 24, 180);
/* oklch */ color: oklch(47.0% 0.221 310.0);
Tailwind
colors: {
  custom: {
    50: '#ab66cb',
    500: '#8018b4',
    950: '#000000',
  },
}
SCSS
$custom: #8018b4;
$custom-light: #ab66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8018b4",
  "rgb": {
    "r": 128,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 280,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.46984,
    "c": 0.22134,
    "h": 310
  },
  "luminance": 0.08538
}

Semantic roles & 50–950 ramp

primary
#8018B4
secondary
#81CD5B
accent
#F33574
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8018B4

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

Preview Lab → · Contrast checker → · Palette generator →

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