#8A40C8#8A40C8

#8A40C8 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.4% C 0.203 H 305.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A40C8
RGBrgb(138, 64, 200)
HSLhsl(273, 55%, 52%)
HSVhsv(273, 68%, 78%)
CMYKcmyk(31%, 68%, 0%, 21.6%)
CIE-LABlab(43.12, 55.55, -58.29)
CIE-LCHlch(43.12, 80.52, 313.62°)
OKLaboklab(53.41% 0.1178 -0.1655)
OKLCHoklch(53.41% 0.203 305.5)
XYZxyz(22.7377, 13.2404, 55.9902)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40C8 #7EC840
analogous
#4640C8 #8A40C8 #C840C2
triadic
#8A40C8 #C88A40 #40C88A
tetradic
#8A40C8 #C84640 #7EC840 #40C2C8
square
#8A40C8 #C84640 #7EC840 #40C2C8
split-complementary
#8A40C8 #C2C840 #40C846
monochromatic
#4A206E #6A2D9D #8A40C8 #A770D6 #C49FE3

Accessibility & contrast

On white

5.76
#8A40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8A40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40C8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40C8#FFFFFF#000000##FFFFFF
##8A40C81.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#1166C5
Tritanopia (blue-blind)
#7F5E7F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a40c8;
/* rgb */ color: rgb(138, 64, 200);
/* oklch */ color: oklch(53.4% 0.203 305.5);
Tailwind
colors: {
  custom: {
    50: '#b17ad9',
    500: '#8a40c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a40c8;
$custom-light: #b17ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40c8",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 272.647,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53413,
    "c": 0.20311,
    "h": 305.5
  },
  "luminance": 0.1324
}

Semantic roles & 50–950 ramp

primary
#8A40C8
secondary
#AFD094
accent
#DF498D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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