#8F38C5#8F38C5

#8F38C5 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.9% C 0.211 H 309.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8F38C5
RGBrgb(143, 56, 197)
HSLhsl(277, 56%, 50%)
HSVhsv(277, 72%, 77%)
CMYKcmyk(27.4%, 71.6%, 0%, 22.7%)
CIE-LABlab(42.31, 59.43, -57.84)
CIE-LCHlch(42.31, 82.93, 315.78°)
OKLaboklab(52.91% 0.1331 -0.1639)
OKLCHoklch(52.91% 0.211 309.1)
XYZxyz(22.8179, 12.6996, 54.0617)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38C5 #6EC538
analogous
#4838C5 #8F38C5 #C538B5
triadic
#8F38C5 #C58F38 #38C58F
tetradic
#8F38C5 #C54838 #6EC538 #38B5C5
square
#8F38C5 #C54838 #6EC538 #38B5C5
split-complementary
#8F38C5 #B5C538 #38C548
monochromatic
#4A1D66 #6C2A95 #8F38C5 #AA67D4 #C496E1

Accessibility & contrast

On white

5.93
#8F38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8F38C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38C5
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38C5#FFFFFF#000000##FFFFFF
##8F38C51.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#1565C2
Tritanopia (blue-blind)
#87587B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8f38c5;
/* rgb */ color: rgb(143, 56, 197);
/* oklch */ color: oklch(52.9% 0.211 309.1);
Tailwind
colors: {
  custom: {
    50: '#b476d7',
    500: '#8f38c5',
    950: '#000000',
  },
}
SCSS
$custom: #8f38c5;
$custom-light: #b476d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38c5",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 277.021,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52905,
    "c": 0.21115,
    "h": 309.1
  },
  "luminance": 0.12699
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8F38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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