#8740CA#8740CA

#8740CA is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.2% C 0.205 H 303.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8740CA
RGBrgb(135, 64, 202)
HSLhsl(271, 57%, 52%)
HSVhsv(271, 68%, 79%)
CMYKcmyk(33.2%, 68.3%, 0%, 20.8%)
CIE-LABlab(42.89, 55.41, -59.85)
CIE-LCHlch(42.89, 81.56, 312.79°)
OKLaboklab(53.21% 0.1135 -0.1701)
OKLCHoklch(53.21% 0.205 303.7)
XYZxyz(22.4833, 13.0820, 57.2063)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740CA #83CA40
analogous
#4240CA #8740CA #CA40C8
triadic
#8740CA #CA8740 #40CA87
tetradic
#8740CA #CA4240 #83CA40 #40C8CA
square
#8740CA #CA4240 #83CA40 #40C8CA
split-complementary
#8740CA #C8CA40 #40CA42
monochromatic
#491F70 #682CA0 #8740CA #A570D7 #C3A0E5

Accessibility & contrast

On white

5.81
#8740CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8740CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740CA
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740CA#FFFFFF#000000##FFFFFF
##8740CA1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0065C7
Tritanopia (blue-blind)
#7A6080
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8740ca;
/* rgb */ color: rgb(135, 64, 202);
/* oklch */ color: oklch(53.2% 0.205 303.7);
Tailwind
colors: {
  custom: {
    50: '#af7adb',
    500: '#8740ca',
    950: '#000000',
  },
}
SCSS
$custom: #8740ca;
$custom-light: #af7adb;
$custom-dark: #000000;
JSON
{
  "hex": "#8740ca",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 270.87,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53206,
    "c": 0.20453,
    "h": 303.7
  },
  "luminance": 0.13082
}

Semantic roles & 50–950 ramp

primary
#8740CA
secondary
#B2D195
accent
#E04892
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8740CA

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

Preview Lab → · Contrast checker → · Palette generator →

#8740CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva