#8A45BF#8A45BF

#8A45BF is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.4% C 0.187 H 307.2°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8A45BF
RGBrgb(138, 69, 191)
HSLhsl(274, 49%, 51%)
HSVhsv(274, 64%, 75%)
CMYKcmyk(27.7%, 63.9%, 0%, 25.1%)
CIE-LABlab(43.39, 51.05, -52.63)
CIE-LCHlch(43.39, 73.32, 314.13°)
OKLaboklab(53.41% 0.113 -0.1488)
OKLCHoklch(53.41% 0.187 307.2)
XYZxyz(22.0114, 13.4214, 50.7111)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45BF #7ABF45
analogous
#4D45BF #8A45BF #BF45B7
triadic
#8A45BF #BF8A45 #45BF8A
tetradic
#8A45BF #BF4D45 #7ABF45 #45B7BF
square
#8A45BF #BF4D45 #7ABF45 #45B7BF
split-complementary
#8A45BF #B7BF45 #45BF4D
monochromatic
#492366 #6A3394 #8A45BF #A773CF #C3A0DE

Accessibility & contrast

On white

5.70
#8A45BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A45BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45BF
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45BF#FFFFFF#000000##FFFFFF
##8A45BF1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#2D67BC
Tritanopia (blue-blind)
#825E7C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a45bf;
/* rgb */ color: rgb(138, 69, 191);
/* oklch */ color: oklch(53.4% 0.187 307.2);
Tailwind
colors: {
  custom: {
    50: '#b07dd3',
    500: '#8a45bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a45bf;
$custom-light: #b07dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45bf",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 273.934,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53413,
    "c": 0.18687,
    "h": 307.2
  },
  "luminance": 0.13421
}

Semantic roles & 50–950 ramp

primary
#8A45BF
secondary
#ACCB95
accent
#D84F8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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