#8F38CC#8F38CC

#8F38CC is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.4% C 0.218 H 307.3°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8F38CC
RGBrgb(143, 56, 204)
HSLhsl(275, 59%, 51%)
HSVhsv(275, 73%, 80%)
CMYKcmyk(29.9%, 72.5%, 0%, 20%)
CIE-LABlab(42.81, 60.96, -61.09)
CIE-LCHlch(42.81, 86.31, 314.94°)
OKLaboklab(53.42% 0.132 -0.1735)
OKLCHoklch(53.42% 0.218 307.3)
XYZxyz(23.6386, 13.0279, 58.3844)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38CC #75CC38
analogous
#4538CC #8F38CC #CC38BF
triadic
#8F38CC #CC8F38 #38CC8F
tetradic
#8F38CC #CC4538 #75CC38 #38BFCC
square
#8F38CC #CC4538 #75CC38 #38BFCC
split-complementary
#8F38CC #BFCC38 #38CC45
monochromatic
#4C1C6E #6E299E #8F38CC #AA69D8 #C699E5

Accessibility & contrast

On white

5.82
#8F38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8F38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38CC
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38CC#FFFFFF#000000##FFFFFF
##8F38CC1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#855B7F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8f38cc;
/* rgb */ color: rgb(143, 56, 204);
/* oklch */ color: oklch(53.4% 0.218 307.3);
Tailwind
colors: {
  custom: {
    50: '#b577dc',
    500: '#8f38cc',
    950: '#000000',
  },
}
SCSS
$custom: #8f38cc;
$custom-light: #b577dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38cc",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 275.27,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53416,
    "c": 0.21798,
    "h": 307.3
  },
  "luminance": 0.13028
}

Semantic roles & 50–950 ramp

primary
#8F38CC
secondary
#AAD18F
accent
#E24586
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8F38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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