#8A4BEC#8A4BEC

#8A4BEC is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.4% C 0.228 H 296.4°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A4BEC
RGBrgb(138, 75, 236)
HSLhsl(263, 81%, 61%)
HSVhsv(263, 68%, 93%)
CMYKcmyk(41.5%, 68.2%, 0%, 7.5%)
CIE-LABlab(47.61, 59.03, -71.57)
CIE-LCHlch(47.61, 92.78, 309.51°)
OKLaboklab(57.44% 0.1015 -0.2045)
OKLCHoklch(57.44% 0.228 296.4)
XYZxyz(28.1337, 16.4910, 81.0414)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BEC #ADEC4B
analogous
#4B5CEC #8A4BEC #DA4BEC
triadic
#8A4BEC #EC8A4B #4BEC8A
tetradic
#8A4BEC #EC4B5C #ADEC4B #4BECDA
square
#8A4BEC #EC4B5C #ADEC4B #4BECDA
split-complementary
#8A4BEC #ECDA4B #5CEC4B
monochromatic
#4E12AB #6718E2 #8A4BEC #AE82F2 #D2BAF8

Accessibility & contrast

On white

4.89
#8A4BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8A4BEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BEC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BEC#FFFFFF#000000##FFFFFF
##8A4BEC1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F1
Deuteranopia (green-blind)
#006FE9
Tritanopia (blue-blind)
#717296
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a4bec;
/* rgb */ color: rgb(138, 75, 236);
/* oklch */ color: oklch(57.4% 0.228 296.4);
Tailwind
colors: {
  custom: {
    50: '#b382f3',
    500: '#8a4bec',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bec;
$custom-light: #b382f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bec",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 236
  },
  "hsl": {
    "h": 263.478,
    "s": 80.905,
    "l": 60.98
  },
  "oklch": {
    "l": 0.57439,
    "c": 0.22834,
    "h": 296.4
  },
  "luminance": 0.16492
}

Semantic roles & 50–950 ramp

primary
#8A4BEC
secondary
#D0E8AB
accent
#DD088A
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A4BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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