#8242D2#8242D2

#8242D2 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.5% C 0.210 H 299.6°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8242D2
RGBrgb(130, 66, 210)
HSLhsl(267, 62%, 54%)
HSVhsv(267, 69%, 82%)
CMYKcmyk(38.1%, 68.6%, 0%, 17.6%)
CIE-LABlab(43.20, 55.41, -63.98)
CIE-LCHlch(43.20, 84.64, 310.89°)
OKLaboklab(53.48% 0.1035 -0.1825)
OKLCHoklch(53.48% 0.21 299.6)
XYZxyz(22.7841, 13.2952, 62.3261)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8242D2 #92D242
analogous
#424AD2 #8242D2 #CA42D2
triadic
#8242D2 #D28242 #42D282
tetradic
#8242D2 #D2424A #92D242 #42D2CA
square
#8242D2 #D2424A #92D242 #42D2CA
split-complementary
#8242D2 #D2CA42 #4AD242
monochromatic
#481E7C #6429AD #8242D2 #A373DE #C3A5EA

Accessibility & contrast

On white

5.74
#8242D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8242D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8242D2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8242D2#FFFFFF#000000##FFFFFF
##8242D21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0065CF
Tritanopia (blue-blind)
#706485
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8242d2;
/* rgb */ color: rgb(130, 66, 210);
/* oklch */ color: oklch(53.5% 0.210 299.6);
Tailwind
colors: {
  custom: {
    50: '#ac7be1',
    500: '#8242d2',
    950: '#000000',
  },
}
SCSS
$custom: #8242d2;
$custom-light: #ac7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8242d2",
  "rgb": {
    "r": 130,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 266.667,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53482,
    "c": 0.20977,
    "h": 299.6
  },
  "luminance": 0.13295
}

Semantic roles & 50–950 ramp

primary
#8242D2
secondary
#BBD799
accent
#E5439D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8242D2

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

Preview Lab → · Contrast checker → · Palette generator →

#8242D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva