#8A45DB#8A45DB

#8A45DB is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.4% C 0.217 H 300.5°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8A45DB
RGBrgb(138, 69, 219)
HSLhsl(268, 68%, 56%)
HSVhsv(268, 68%, 86%)
CMYKcmyk(37%, 68.5%, 0%, 14.1%)
CIE-LABlab(45.32, 57.70, -65.66)
CIE-LCHlch(45.32, 87.41, 311.31°)
OKLaboklab(55.41% 0.11 -0.1871)
OKLCHoklch(55.41% 0.217 300.5)
XYZxyz(25.3924, 14.7738, 68.5179)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45DB #96DB45
analogous
#454BDB #8A45DB #D545DB
triadic
#8A45DB #DB8A45 #45DB8A
tetradic
#8A45DB #DB454B #96DB45 #45DBD5
square
#8A45DB #DB454B #96DB45 #45DBD5
split-complementary
#8A45DB #DBD545 #4BDB45
monochromatic
#4E1B8B #6B25BE #8A45DB #AA78E5 #CBACEF

Accessibility & contrast

On white

5.31
#8A45DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8A45DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45DB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45DB#FFFFFF#000000##FFFFFF
##8A45DB1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#006AD8
Tritanopia (blue-blind)
#78698B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a45db;
/* rgb */ color: rgb(138, 69, 219);
/* oklch */ color: oklch(55.4% 0.217 300.5);
Tailwind
colors: {
  custom: {
    50: '#b27ee7',
    500: '#8a45db',
    950: '#000000',
  },
}
SCSS
$custom: #8a45db;
$custom-light: #b27ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45db",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 267.6,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55411,
    "c": 0.21709,
    "h": 300.5
  },
  "luminance": 0.14774
}

Semantic roles & 50–950 ramp

primary
#8A45DB
secondary
#C0DD9F
accent
#EA3D9B
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A45DB

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

Preview Lab → · Contrast checker → · Palette generator →

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