#8A3FB7#8A3FB7

#8A3FB7 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.1% C 0.187 H 310.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8A3FB7
RGBrgb(138, 63, 183)
HSLhsl(278, 49%, 48%)
HSVhsv(278, 66%, 72%)
CMYKcmyk(24.6%, 65.6%, 0%, 28.2%)
CIE-LABlab(41.81, 52.15, -50.49)
CIE-LCHlch(41.81, 72.58, 315.93°)
OKLaboklab(52.11% 0.1205 -0.1425)
OKLCHoklch(52.11% 0.187 310.2)
XYZxyz(20.8043, 12.3776, 46.0837)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FB7 #6CB73F
analogous
#4E3FB7 #8A3FB7 #B73FA8
triadic
#8A3FB7 #B78A3F #3FB78A
tetradic
#8A3FB7 #B74E3F #6CB73F #3FA8B7
square
#8A3FB7 #B74E3F #6CB73F #3FA8B7
split-complementary
#8A3FB7 #A8B73F #3FB74E
monochromatic
#45205C #682F89 #8A3FB7 #A668CB #C196DB

Accessibility & contrast

On white

6.04
#8A3FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8A3FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FB7
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FB7#FFFFFF#000000##FFFFFF
##8A3FB71.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#2F64B4
Tritanopia (blue-blind)
#845775
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3fb7;
/* rgb */ color: rgb(138, 63, 183);
/* oklch */ color: oklch(52.1% 0.187 310.2);
Tailwind
colors: {
  custom: {
    50: '#b079cd',
    500: '#8a3fb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fb7;
$custom-light: #b079cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fb7",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 183
  },
  "hsl": {
    "h": 277.5,
    "s": 48.78,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52107,
    "c": 0.18665,
    "h": 310.2
  },
  "luminance": 0.12377
}

Semantic roles & 50–950 ramp

primary
#8A3FB7
secondary
#A2C68B
accent
#D84F83
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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