#8A3FB9#8A3FB9

#8A3FB9 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.2% C 0.189 H 309.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8A3FB9
RGBrgb(138, 63, 185)
HSLhsl(277, 49%, 49%)
HSVhsv(277, 66%, 73%)
CMYKcmyk(25.4%, 65.9%, 0%, 27.5%)
CIE-LABlab(41.94, 52.60, -51.45)
CIE-LCHlch(41.94, 73.58, 315.63°)
OKLaboklab(52.24% 0.1204 -0.1454)
OKLCHoklch(52.24% 0.189 309.6)
XYZxyz(21.0140, 12.4615, 47.1878)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FB9 #6EB93F
analogous
#4D3FB9 #8A3FB9 #B93FAB
triadic
#8A3FB9 #B98A3F #3FB98A
tetradic
#8A3FB9 #B94D3F #6EB93F #3FABB9
square
#8A3FB9 #B94D3F #6EB93F #3FABB9
split-complementary
#8A3FB9 #ABB93F #3FB94D
monochromatic
#46205E #682F8B #8A3FB9 #A669CC #C197DC

Accessibility & contrast

On white

6.01
#8A3FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8A3FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FB9
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FB9#FFFFFF#000000##FFFFFF
##8A3FB91.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#2C64B6
Tritanopia (blue-blind)
#835877
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3fb9;
/* rgb */ color: rgb(138, 63, 185);
/* oklch */ color: oklch(52.2% 0.189 309.6);
Tailwind
colors: {
  custom: {
    50: '#b079cf',
    500: '#8a3fb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fb9;
$custom-light: #b079cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fb9",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 185
  },
  "hsl": {
    "h": 276.885,
    "s": 49.194,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52242,
    "c": 0.18873,
    "h": 309.6
  },
  "luminance": 0.12461
}

Semantic roles & 50–950 ramp

primary
#8A3FB9
secondary
#A3C78D
accent
#D94F84
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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