#8242BB#8242BB

#8242BB is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.185 H 305.1°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8242BB
RGBrgb(130, 66, 187)
HSLhsl(272, 48%, 50%)
HSVhsv(272, 65%, 73%)
CMYKcmyk(30.5%, 64.7%, 0%, 26.7%)
CIE-LABlab(41.58, 49.81, -53.26)
CIE-LCHlch(41.58, 72.92, 313.08°)
OKLaboklab(51.8% 0.1062 -0.1509)
OKLCHoklch(51.8% 0.185 305.1)
XYZxyz(20.1218, 12.2302, 48.3047)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8242BB #7BBB42
analogous
#4642BB #8242BB #BB42B7
triadic
#8242BB #BB8242 #42BB82
tetradic
#8242BB #BB4642 #7BBB42 #42B7BB
square
#8242BB #BB4642 #7BBB42 #42B7BB
split-complementary
#8242BB #B7BB42 #42BB46
monochromatic
#432261 #63328E #8242BB #A06ECC #BE9CDC

Accessibility & contrast

On white

6.09
#8242BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8242BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8242BB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8242BB#FFFFFF#000000##FFFFFF
##8242BB1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#2262B8
Tritanopia (blue-blind)
#785C79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8242bb;
/* rgb */ color: rgb(130, 66, 187);
/* oklch */ color: oklch(51.8% 0.185 305.1);
Tailwind
colors: {
  custom: {
    50: '#aa7ad0',
    500: '#8242bb',
    950: '#000000',
  },
}
SCSS
$custom: #8242bb;
$custom-light: #aa7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8242bb",
  "rgb": {
    "r": 130,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 271.736,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51803,
    "c": 0.18453,
    "h": 305.1
  },
  "luminance": 0.1223
}

Semantic roles & 50–950 ramp

primary
#8242BB
secondary
#ABC891
accent
#D75090
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8242BB

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

Preview Lab → · Contrast checker → · Palette generator →

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