#8945B2#8945B2

#8945B2 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.4% C 0.172 H 310.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8945B2
RGBrgb(137, 69, 178)
HSLhsl(277, 44%, 48%)
HSVhsv(277, 61%, 70%)
CMYKcmyk(23%, 61.2%, 0%, 30.2%)
CIE-LABlab(42.44, 47.84, -46.54)
CIE-LCHlch(42.44, 66.74, 315.79°)
OKLaboklab(52.44% 0.1122 -0.131)
OKLCHoklch(52.44% 0.172 310.6)
XYZxyz(20.4790, 12.7894, 43.5006)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8945B2 #6EB245
analogous
#5245B2 #8945B2 #B245A4
triadic
#8945B2 #B28945 #45B289
tetradic
#8945B2 #B25245 #6EB245 #45A4B2
square
#8945B2 #B25245 #6EB245 #45A4B2
split-complementary
#8945B2 #A4B245 #45B252
monochromatic
#45235A #673486 #8945B2 #A56EC7 #C09AD8

Accessibility & contrast

On white

5.90
#8945B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8945B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8945B2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8945B2#FFFFFF#000000##FFFFFF
##8945B21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1961B5
Deuteranopia (green-blind)
#3A65AF
Tritanopia (blue-blind)
#845A75
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8945b2;
/* rgb */ color: rgb(137, 69, 178);
/* oklch */ color: oklch(52.4% 0.172 310.6);
Tailwind
colors: {
  custom: {
    50: '#af7cca',
    500: '#8945b2',
    950: '#000000',
  },
}
SCSS
$custom: #8945b2;
$custom-light: #af7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8945b2",
  "rgb": {
    "r": 137,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 277.431,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52437,
    "c": 0.17244,
    "h": 310.6
  },
  "luminance": 0.12789
}

Semantic roles & 50–950 ramp

primary
#8945B2
secondary
#A3C48F
accent
#D45484
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8945B2

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

Preview Lab → · Contrast checker → · Palette generator →

#8945B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva