#8A40C7#8A40C7

#8A40C7 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.3% C 0.202 H 305.7°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A40C7
RGBrgb(138, 64, 199)
HSLhsl(273, 55%, 52%)
HSVhsv(273, 68%, 78%)
CMYKcmyk(30.7%, 67.8%, 0%, 22%)
CIE-LABlab(43.05, 55.32, -57.83)
CIE-LCHlch(43.05, 80.02, 313.73°)
OKLaboklab(53.34% 0.1179 -0.1641)
OKLCHoklch(53.34% 0.202 305.7)
XYZxyz(22.6212, 13.1938, 55.3767)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40C7 #7DC740
analogous
#4740C7 #8A40C7 #C740C1
triadic
#8A40C7 #C78A40 #40C78A
tetradic
#8A40C7 #C74740 #7DC740 #40C1C7
square
#8A40C7 #C74740 #7DC740 #40C1C7
split-complementary
#8A40C7 #C1C740 #40C747
monochromatic
#4A206D #6A2E9C #8A40C7 #A76FD5 #C49FE3

Accessibility & contrast

On white

5.77
#8A40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8A40C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40C7
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40C7#FFFFFF#000000##FFFFFF
##8A40C71.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#1566C4
Tritanopia (blue-blind)
#7F5E7E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a40c7;
/* rgb */ color: rgb(138, 64, 199);
/* oklch */ color: oklch(53.3% 0.202 305.7);
Tailwind
colors: {
  custom: {
    50: '#b17ad9',
    500: '#8a40c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a40c7;
$custom-light: #b17ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40c7",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 272.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53341,
    "c": 0.20206,
    "h": 305.7
  },
  "luminance": 0.13194
}

Semantic roles & 50–950 ramp

primary
#8A40C7
secondary
#AFCF94
accent
#DE4A8D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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