#8A54B2#8A54B2

#8A54B2 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.8% C 0.149 H 308.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8A54B2
RGBrgb(138, 84, 178)
HSLhsl(274, 38%, 51%)
HSVhsv(274, 53%, 70%)
CMYKcmyk(22.5%, 52.8%, 0%, 30.2%)
CIE-LABlab(45.58, 40.11, -41.53)
CIE-LCHlch(45.58, 57.74, 314.00°)
OKLaboklab(54.76% 0.0936 -0.1164)
OKLCHoklch(54.76% 0.149 308.8)
XYZxyz(21.6859, 14.9586, 43.8557)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54B2 #7CB254
analogous
#5B54B2 #8A54B2 #B254AB
triadic
#8A54B2 #B28A54 #54B28A
tetradic
#8A54B2 #B25B54 #7CB254 #54ABB2
square
#8A54B2 #B25B54 #7CB254 #54ABB2
split-complementary
#8A54B2 #ABB254 #54B25B
monochromatic
#4A2B60 #6A3E8A #8A54B2 #A77EC5 #C4A8D8

Accessibility & contrast

On white

5.26
#8A54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8A54B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54B2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54B2#FFFFFF#000000##FFFFFF
##8A54B21.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#4A6DB0
Tritanopia (blue-blind)
#85647B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a54b2;
/* rgb */ color: rgb(138, 84, 178);
/* oklch */ color: oklch(54.8% 0.149 308.8);
Tailwind
colors: {
  custom: {
    50: '#ae86c9',
    500: '#8a54b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a54b2;
$custom-light: #ae86c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54b2",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 274.468,
    "s": 37.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5476,
    "c": 0.14937,
    "h": 308.8
  },
  "luminance": 0.14958
}

Semantic roles & 50–950 ramp

primary
#8A54B2
secondary
#AEC69C
accent
#CE5A8B
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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