#8F40CA#8F40CA

#8F40CA is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.2% C 0.206 H 307.0°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8F40CA
RGBrgb(143, 64, 202)
HSLhsl(274, 57%, 52%)
HSVhsv(274, 68%, 79%)
CMYKcmyk(29.2%, 68.3%, 0%, 20.8%)
CIE-LABlab(43.90, 57.03, -58.16)
CIE-LCHlch(43.90, 81.46, 314.44°)
OKLaboklab(54.15% 0.1242 -0.1649)
OKLCHoklch(54.15% 0.206 307)
XYZxyz(23.8195, 13.7710, 57.2689)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40CA #7BCA40
analogous
#4A40CA #8F40CA #CA40C0
triadic
#8F40CA #CA8F40 #40CA8F
tetradic
#8F40CA #CA4A40 #7BCA40 #40C0CA
square
#8F40CA #CA4A40 #7BCA40 #40C0CA
split-complementary
#8F40CA #C0CA40 #40CA4A
monochromatic
#4E1F70 #6F2CA0 #8F40CA #AB70D7 #C7A0E5

Accessibility & contrast

On white

5.59
#8F40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8F40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40CA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40CA#FFFFFF#000000##FFFFFF
##8F40CA1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#1A68C7
Tritanopia (blue-blind)
#855F80
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8f40ca;
/* rgb */ color: rgb(143, 64, 202);
/* oklch */ color: oklch(54.2% 0.206 307.0);
Tailwind
colors: {
  custom: {
    50: '#b47bdb',
    500: '#8f40ca',
    950: '#000000',
  },
}
SCSS
$custom: #8f40ca;
$custom-light: #b47bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40ca",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 274.348,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54152,
    "c": 0.20645,
    "h": 307
  },
  "luminance": 0.13771
}

Semantic roles & 50–950 ramp

primary
#8F40CA
secondary
#AFD195
accent
#E04889
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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