#8F38C7#8F38C7

#8F38C7 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.0% C 0.213 H 308.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8F38C7
RGBrgb(143, 56, 199)
HSLhsl(277, 56%, 50%)
HSVhsv(277, 72%, 78%)
CMYKcmyk(28.1%, 71.9%, 0%, 22%)
CIE-LABlab(42.45, 59.87, -58.78)
CIE-LCHlch(42.45, 83.90, 315.53°)
OKLaboklab(53.05% 0.1328 -0.1666)
OKLCHoklch(53.05% 0.213 308.6)
XYZxyz(23.0486, 12.7919, 55.2766)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38C7 #70C738
analogous
#4738C7 #8F38C7 #C738B8
triadic
#8F38C7 #C78F38 #38C78F
tetradic
#8F38C7 #C74738 #70C738 #38B8C7
square
#8F38C7 #C74738 #70C738 #38B8C7
split-complementary
#8F38C7 #B8C738 #38C747
monochromatic
#4A1D67 #6D2B97 #8F38C7 #AA68D4 #C598E2

Accessibility & contrast

On white

5.90
#8F38C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8F38C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38C7
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38C7#FFFFFF#000000##FFFFFF
##8F38C71.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CB
Deuteranopia (green-blind)
#0F65C4
Tritanopia (blue-blind)
#86597C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8f38c7;
/* rgb */ color: rgb(143, 56, 199);
/* oklch */ color: oklch(53.0% 0.213 308.6);
Tailwind
colors: {
  custom: {
    50: '#b576d9',
    500: '#8f38c7',
    950: '#000000',
  },
}
SCSS
$custom: #8f38c7;
$custom-light: #b576d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38c7",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 276.503,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.5305,
    "c": 0.2131,
    "h": 308.6
  },
  "luminance": 0.12792
}

Semantic roles & 50–950 ramp

primary
#8F38C7
secondary
#A6CD8D
accent
#DF4884
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8F38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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