#8A40CB#8A40CB

#8A40CB is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.6% C 0.206 H 304.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A40CB
RGBrgb(138, 64, 203)
HSLhsl(272, 57%, 52%)
HSVhsv(272, 68%, 80%)
CMYKcmyk(32%, 68.5%, 0%, 20.4%)
CIE-LABlab(43.33, 56.24, -59.69)
CIE-LCHlch(43.33, 82.02, 313.30°)
OKLaboklab(53.63% 0.1174 -0.1696)
OKLCHoklch(53.63% 0.206 304.7)
XYZxyz(23.0917, 13.3820, 57.8548)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40CB #81CB40
analogous
#4440CB #8A40CB #CB40C7
triadic
#8A40CB #CB8A40 #40CB8A
tetradic
#8A40CB #CB4440 #81CB40 #40C7CB
square
#8A40CB #CB4440 #81CB40 #40C7CB
split-complementary
#8A40CB #C7CB40 #40CB44
monochromatic
#4B1F72 #6B2CA2 #8A40CB #A770D8 #C5A0E5

Accessibility & contrast

On white

5.71
#8A40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40CB
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40CB#FFFFFF#000000##FFFFFF
##8A40CB1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0466C8
Tritanopia (blue-blind)
#7E6081
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a40cb;
/* rgb */ color: rgb(138, 64, 203);
/* oklch */ color: oklch(53.6% 0.206 304.7);
Tailwind
colors: {
  custom: {
    50: '#b17adc',
    500: '#8a40cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a40cb;
$custom-light: #b17adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40cb",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 271.942,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53629,
    "c": 0.20625,
    "h": 304.7
  },
  "luminance": 0.13382
}

Semantic roles & 50–950 ramp

primary
#8A40CB
secondary
#B1D295
accent
#E0478F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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