#8A40CA#8A40CA

#8A40CA is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.6% C 0.205 H 305.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A40CA
RGBrgb(138, 64, 202)
HSLhsl(272, 57%, 52%)
HSVhsv(272, 68%, 79%)
CMYKcmyk(31.7%, 68.3%, 0%, 20.8%)
CIE-LABlab(43.26, 56.01, -59.23)
CIE-LCHlch(43.26, 81.52, 313.40°)
OKLaboklab(53.56% 0.1176 -0.1682)
OKLCHoklch(53.56% 0.205 305)
XYZxyz(22.9729, 13.3345, 57.2292)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40CA #80CA40
analogous
#4540CA #8A40CA #CA40C5
triadic
#8A40CA #CA8A40 #40CA8A
tetradic
#8A40CA #CA4540 #80CA40 #40C5CA
square
#8A40CA #CA4540 #80CA40 #40C5CA
split-complementary
#8A40CA #C5CA40 #40CA45
monochromatic
#4B1F70 #6B2CA0 #8A40CA #A770D7 #C5A0E5

Accessibility & contrast

On white

5.73
#8A40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8A40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40CA
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40CA#FFFFFF#000000##FFFFFF
##8A40CA1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0966C7
Tritanopia (blue-blind)
#7E5F80
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a40ca;
/* rgb */ color: rgb(138, 64, 202);
/* oklch */ color: oklch(53.6% 0.205 305.0);
Tailwind
colors: {
  custom: {
    50: '#b17adb',
    500: '#8a40ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a40ca;
$custom-light: #b17adb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40ca",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 272.174,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53557,
    "c": 0.20521,
    "h": 305
  },
  "luminance": 0.13334
}

Semantic roles & 50–950 ramp

primary
#8A40CA
secondary
#B1D195
accent
#E0488E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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