#8D45B2#8D45B2

#8D45B2 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.174 H 312.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8D45B2
RGBrgb(141, 69, 178)
HSLhsl(280, 44%, 48%)
HSVhsv(280, 61%, 70%)
CMYKcmyk(20.8%, 61.2%, 0%, 30.2%)
CIE-LABlab(42.96, 48.82, -45.67)
CIE-LCHlch(42.96, 66.85, 316.91°)
OKLaboklab(52.93% 0.1173 -0.1283)
OKLCHoklch(52.93% 0.174 312.4)
XYZxyz(21.1471, 13.1339, 43.5319)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D45B2 #6AB245
analogous
#5645B2 #8D45B2 #B245A0
triadic
#8D45B2 #B28D45 #45B28D
tetradic
#8D45B2 #B25645 #6AB245 #45A0B2
square
#8D45B2 #B25645 #6AB245 #45A0B2
split-complementary
#8D45B2 #A0B245 #45B256
monochromatic
#47235A #6A3486 #8D45B2 #A86EC7 #C39AD8

Accessibility & contrast

On white

5.79
#8D45B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8D45B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D45B2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D45B2#FFFFFF#000000##FFFFFF
##8D45B21.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B5
Deuteranopia (green-blind)
#3E67AF
Tritanopia (blue-blind)
#895975
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8d45b2;
/* rgb */ color: rgb(141, 69, 178);
/* oklch */ color: oklch(52.9% 0.174 312.4);
Tailwind
colors: {
  custom: {
    50: '#b17dc9',
    500: '#8d45b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d45b2;
$custom-light: #b17dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d45b2",
  "rgb": {
    "r": 141,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 279.633,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52926,
    "c": 0.17388,
    "h": 312.4
  },
  "luminance": 0.13133
}

Semantic roles & 50–950 ramp

primary
#8D45B2
secondary
#A1C48F
accent
#D4547F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8D45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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