#8F38D9#8F38D9

#8F38D9 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.4% C 0.231 H 304.2°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8F38D9
RGBrgb(143, 56, 217)
HSLhsl(272, 68%, 54%)
HSVhsv(272, 74%, 85%)
CMYKcmyk(34.1%, 74.2%, 0%, 14.9%)
CIE-LABlab(43.77, 63.86, -67.02)
CIE-LCHlch(43.77, 92.57, 313.62°)
OKLaboklab(54.4% 0.1295 -0.1909)
OKLCHoklch(54.4% 0.231 304.2)
XYZxyz(25.2634, 13.6778, 66.9413)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38D9 #82D938
analogous
#3E38D9 #8F38D9 #D938D3
triadic
#8F38D9 #D98F38 #38D98F
tetradic
#8F38D9 #D93E38 #82D938 #38D3D9
square
#8F38D9 #D93E38 #82D938 #38D3D9
split-complementary
#8F38D9 #D3D938 #38D93E
monochromatic
#4F187E #7022B2 #8F38D9 #AC6BE3 #C99FED

Accessibility & contrast

On white

5.62
#8F38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8F38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38D9
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38D9#FFFFFF#000000##FFFFFF
##8F38D91.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#0067D6
Tritanopia (blue-blind)
#816086
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8f38d9;
/* rgb */ color: rgb(143, 56, 217);
/* oklch */ color: oklch(54.4% 0.231 304.2);
Tailwind
colors: {
  custom: {
    50: '#b677e6',
    500: '#8f38d9',
    950: '#000000',
  },
}
SCSS
$custom: #8f38d9;
$custom-light: #b677e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38d9",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 272.422,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54397,
    "c": 0.23067,
    "h": 304.2
  },
  "luminance": 0.13678
}

Semantic roles & 50–950 ramp

primary
#8F38D9
secondary
#B4D994
accent
#EB3D8D
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8F38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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