#8A3FB8#8A3FB8

#8A3FB8 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.188 H 309.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A3FB8
RGBrgb(138, 63, 184)
HSLhsl(277, 49%, 48%)
HSVhsv(277, 66%, 72%)
CMYKcmyk(25%, 65.8%, 0%, 27.8%)
CIE-LABlab(41.88, 52.37, -50.97)
CIE-LCHlch(41.88, 73.08, 315.78°)
OKLaboklab(52.17% 0.1205 -0.1439)
OKLCHoklch(52.17% 0.188 309.9)
XYZxyz(20.9088, 12.4194, 46.6338)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FB8 #6DB83F
analogous
#4D3FB8 #8A3FB8 #B83FA9
triadic
#8A3FB8 #B88A3F #3FB88A
tetradic
#8A3FB8 #B84D3F #6DB83F #3FA9B8
square
#8A3FB8 #B84D3F #6DB83F #3FA9B8
split-complementary
#8A3FB8 #A9B83F #3FB84D
monochromatic
#46205D #682F8A #8A3FB8 #A669CC #C196DB

Accessibility & contrast

On white

6.03
#8A3FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3FB8
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FB8#FFFFFF#000000##FFFFFF
##8A3FB81.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#2E64B5
Tritanopia (blue-blind)
#845876
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3fb8;
/* rgb */ color: rgb(138, 63, 184);
/* oklch */ color: oklch(52.2% 0.188 309.9);
Tailwind
colors: {
  custom: {
    50: '#b079ce',
    500: '#8a3fb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fb8;
$custom-light: #b079ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fb8",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 184
  },
  "hsl": {
    "h": 277.19,
    "s": 48.988,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52174,
    "c": 0.18769,
    "h": 309.9
  },
  "luminance": 0.12419
}

Semantic roles & 50–950 ramp

primary
#8A3FB8
secondary
#A2C78C
accent
#D94F83
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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