#8F38C4#8F38C4

#8F38C4 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.210 H 309.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8F38C4
RGBrgb(143, 56, 196)
HSLhsl(277, 56%, 49%)
HSVhsv(277, 71%, 77%)
CMYKcmyk(27%, 71.4%, 0%, 23.1%)
CIE-LABlab(42.24, 59.21, -57.37)
CIE-LCHlch(42.24, 82.45, 315.90°)
OKLaboklab(52.83% 0.1333 -0.1625)
OKLCHoklch(52.83% 0.21 309.3)
XYZxyz(22.7037, 12.6539, 53.4603)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38C4 #6DC438
analogous
#4938C4 #8F38C4 #C438B3
triadic
#8F38C4 #C48F38 #38C48F
tetradic
#8F38C4 #C44938 #6DC438 #38B3C4
square
#8F38C4 #C44938 #6DC438 #38B3C4
split-complementary
#8F38C4 #B3C438 #38C449
monochromatic
#4A1D65 #6C2A94 #8F38C4 #AA66D3 #C496E1

Accessibility & contrast

On white

5.95
#8F38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8F38C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38C4
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38C4#FFFFFF#000000##FFFFFF
##8F38C41.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#1865C1
Tritanopia (blue-blind)
#87587B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8f38c4;
/* rgb */ color: rgb(143, 56, 196);
/* oklch */ color: oklch(52.8% 0.210 309.3);
Tailwind
colors: {
  custom: {
    50: '#b476d7',
    500: '#8f38c4',
    950: '#000000',
  },
}
SCSS
$custom: #8f38c4;
$custom-light: #b476d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38c4",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 277.286,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52833,
    "c": 0.21018,
    "h": 309.3
  },
  "luminance": 0.12654
}

Semantic roles & 50–950 ramp

primary
#8F38C4
secondary
#A4CC8C
accent
#DF4982
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8F38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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