#8E45D4#8E45D4

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

Color values

HEX#8E45D4
RGBrgb(142, 69, 212)
HSLhsl(271, 62%, 55%)
HSVhsv(271, 67%, 83%)
CMYKcmyk(33%, 67.5%, 0%, 16.9%)
CIE-LABlab(45.30, 56.82, -61.66)
CIE-LCHlch(45.30, 83.85, 312.66°)
OKLaboklab(55.35% 0.1164 -0.1752)
OKLCHoklch(55.35% 0.21 303.6)
XYZxyz(25.1644, 14.7605, 63.7979)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45D4 #8BD445
analogous
#4645D4 #8E45D4 #D445D3
triadic
#8E45D4 #D48E45 #45D48E
tetradic
#8E45D4 #D44645 #8BD445 #45D3D4
square
#8E45D4 #D44645 #8BD445 #45D3D4
split-complementary
#8E45D4 #D3D445 #45D446
monochromatic
#501E81 #6F29B3 #8E45D4 #AC77DF #CAA8EB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E45D4#FFFFFF#000000##FFFFFF
##8E45D41.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)
#006AD8
Deuteranopia (green-blind)
#026BD1
Tritanopia (blue-blind)
#806587
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8e45d4;
/* rgb */ color: rgb(142, 69, 212);
/* oklch */ color: oklch(55.3% 0.210 303.6);
Tailwind
colors: {
  custom: {
    50: '#b47ee2',
    500: '#8e45d4',
    950: '#000000',
  },
}
SCSS
$custom: #8e45d4;
$custom-light: #b47ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45d4",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 212
  },
  "hsl": {
    "h": 270.629,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55347,
    "c": 0.21036,
    "h": 303.6
  },
  "luminance": 0.1476
}

Semantic roles & 50–950 ramp

primary
#8E45D4
secondary
#BAD89C
accent
#E64292
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #8E45D4

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

Preview Lab → · Contrast checker → · Palette generator →

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