#8242BD#8242BD

#8242BD is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.9% C 0.187 H 304.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8242BD
RGBrgb(130, 66, 189)
HSLhsl(271, 48%, 50%)
HSVhsv(271, 65%, 74%)
CMYKcmyk(31.2%, 65.1%, 0%, 25.9%)
CIE-LABlab(41.71, 50.29, -54.21)
CIE-LCHlch(41.71, 73.95, 312.85°)
OKLaboklab(51.94% 0.106 -0.1537)
OKLCHoklch(51.94% 0.187 304.6)
XYZxyz(20.3374, 12.3165, 49.4401)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8242BD #7DBD42
analogous
#4542BD #8242BD #BD42BA
triadic
#8242BD #BD8242 #42BD82
tetradic
#8242BD #BD4542 #7DBD42 #42BABD
square
#8242BD #BD4542 #7DBD42 #42BABD
split-complementary
#8242BD #BABD42 #42BD45
monochromatic
#442262 #633290 #8242BD #A06FCD #BE9DDD

Accessibility & contrast

On white

6.06
#8242BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8242BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8242BD
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8242BD#FFFFFF#000000##FFFFFF
##8242BD1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#1E62BA
Tritanopia (blue-blind)
#775D7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8242bd;
/* rgb */ color: rgb(130, 66, 189);
/* oklch */ color: oklch(51.9% 0.187 304.6);
Tailwind
colors: {
  custom: {
    50: '#ab7ad2',
    500: '#8242bd',
    950: '#000000',
  },
}
SCSS
$custom: #8242bd;
$custom-light: #ab7ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8242bd",
  "rgb": {
    "r": 130,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 271.22,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.51943,
    "c": 0.18673,
    "h": 304.6
  },
  "luminance": 0.12316
}

Semantic roles & 50–950 ramp

primary
#8242BD
secondary
#ACC992
accent
#D85091
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #8242BD

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

Preview Lab → · Contrast checker → · Palette generator →

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