#8A4FBB#8A4FBB

#8A4FBB is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.168 H 306.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8A4FBB
RGBrgb(138, 79, 187)
HSLhsl(273, 44%, 52%)
HSVhsv(273, 58%, 73%)
CMYKcmyk(26.2%, 57.8%, 0%, 26.7%)
CIE-LABlab(45.06, 44.95, -47.62)
CIE-LCHlch(45.06, 65.49, 313.35°)
OKLaboklab(54.55% 0.1007 -0.1342)
OKLCHoklch(54.55% 0.168 306.9)
XYZxyz(22.2450, 14.5833, 48.6471)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FBB #80BB4F
analogous
#544FBB #8A4FBB #BB4FB6
triadic
#8A4FBB #BB8A4F #4FBB8A
tetradic
#8A4FBB #BB544F #80BB4F #4FB6BB
square
#8A4FBB #BB544F #80BB4F #4FB6BB
split-complementary
#8A4FBB #B6BB4F #4FBB54
monochromatic
#4B2868 #6B3994 #8A4FBB #A77BCC #C5A7DD

Accessibility & contrast

On white

5.36
#8A4FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#8A4FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FBB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FBB#FFFFFF#000000##FFFFFF
##8A4FBB1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2669BF
Deuteranopia (green-blind)
#3D6BB8
Tritanopia (blue-blind)
#82647D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4fbb;
/* rgb */ color: rgb(138, 79, 187);
/* oklch */ color: oklch(54.5% 0.168 306.9);
Tailwind
colors: {
  custom: {
    50: '#af83d0',
    500: '#8a4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fbb;
$custom-light: #af83d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fbb",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 272.778,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54545,
    "c": 0.16779,
    "h": 306.9
  },
  "luminance": 0.14583
}

Semantic roles & 50–950 ramp

primary
#8A4FBB
secondary
#B1CA9B
accent
#D4548E
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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