#8D45E8#8D45E8

#8D45E8 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.7% C 0.231 H 299.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8D45E8
RGBrgb(141, 69, 232)
HSLhsl(267, 78%, 59%)
HSVhsv(267, 70%, 91%)
CMYKcmyk(39.2%, 70.3%, 0%, 9%)
CIE-LABlab(46.64, 61.41, -70.89)
CIE-LCHlch(46.64, 93.79, 310.90°)
OKLaboklab(56.73% 0.112 -0.2024)
OKLCHoklch(56.73% 0.231 299)
XYZxyz(27.6744, 15.7448, 77.9093)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D45E8 #A0E845
analogous
#454FE8 #8D45E8 #DE45E8
triadic
#8D45E8 #E88D45 #45E88D
tetradic
#8D45E8 #E8454F #A0E845 #45E8DE
square
#8D45E8 #E8454F #A0E845 #45E8DE
split-complementary
#8D45E8 #E8DE45 #4FE845
monochromatic
#51149F #6D1AD5 #8D45E8 #AE7BEF #D0B2F5

Accessibility & contrast

On white

5.06
#8D45E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#8D45E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D45E8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D45E8#FFFFFF#000000##FFFFFF
##8D45E81.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EED
Deuteranopia (green-blind)
#006DE5
Tritanopia (blue-blind)
#776D92
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8d45e8;
/* rgb */ color: rgb(141, 69, 232);
/* oklch */ color: oklch(56.7% 0.231 299.0);
Tailwind
colors: {
  custom: {
    50: '#b57ef0',
    500: '#8d45e8',
    950: '#000000',
  },
}
SCSS
$custom: #8d45e8;
$custom-light: #b57ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d45e8",
  "rgb": {
    "r": 141,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 266.503,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56727,
    "c": 0.23131,
    "h": 299
  },
  "luminance": 0.15745
}

Semantic roles & 50–950 ramp

primary
#8D45E8
secondary
#C8E4A4
accent
#F4339F
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8D45E8

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

Preview Lab → · Contrast checker → · Palette generator →

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