#8A45F0#8A45F0

#8A45F0 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.0% C 0.239 H 296.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A45F0
RGBrgb(138, 69, 240)
HSLhsl(264, 85%, 61%)
HSVhsv(264, 71%, 94%)
CMYKcmyk(42.5%, 71.3%, 0%, 5.9%)
CIE-LABlab(46.91, 62.85, -74.97)
CIE-LCHlch(46.91, 97.83, 309.97°)
OKLaboklab(57.03% 0.1063 -0.2145)
OKLCHoklch(57.03% 0.239 296.4)
XYZxyz(28.3334, 15.9502, 84.0071)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45F0 #ABF045
analogous
#4555F0 #8A45F0 #E045F0
triadic
#8A45F0 #F08A45 #45F08A
tetradic
#8A45F0 #F04555 #ABF045 #45F0E0
square
#8A45F0 #F04555 #ABF045 #45F0E0
split-complementary
#8A45F0 #F0E045 #55F045
monochromatic
#4E0EAD #6812E5 #8A45F0 #AE7EF5 #D1B6F9

Accessibility & contrast

On white

5.01
#8A45F0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A45F0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45F0
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45F0#FFFFFF#000000##FFFFFF
##8A45F01.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F5
Deuteranopia (green-blind)
#006DED
Tritanopia (blue-blind)
#6F7196
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a45f0;
/* rgb */ color: rgb(138, 69, 240);
/* oklch */ color: oklch(57.0% 0.239 296.4);
Tailwind
colors: {
  custom: {
    50: '#b47ef6',
    500: '#8a45f0',
    950: '#000000',
  },
}
SCSS
$custom: #8a45f0;
$custom-light: #b47ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45f0",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 240
  },
  "hsl": {
    "h": 264.211,
    "s": 85.075,
    "l": 60.588
  },
  "oklch": {
    "l": 0.57034,
    "c": 0.23941,
    "h": 296.4
  },
  "luminance": 0.15951
}

Semantic roles & 50–950 ramp

primary
#8A45F0
secondary
#CFE9A8
accent
#E20488
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120A17
muted
#817C85

Preview Lab

Preview with #8A45F0

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

Preview Lab → · Contrast checker → · Palette generator →

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