#8242CD#8242CD

#8242CD is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.1% C 0.204 H 300.7°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8242CD
RGBrgb(130, 66, 205)
HSLhsl(268, 58%, 53%)
HSVhsv(268, 68%, 80%)
CMYKcmyk(36.6%, 67.8%, 0%, 19.6%)
CIE-LABlab(42.84, 54.17, -61.70)
CIE-LCHlch(42.84, 82.11, 311.29°)
OKLaboklab(53.11% 0.1042 -0.1757)
OKLCHoklch(53.11% 0.204 300.7)
XYZxyz(22.1709, 13.0499, 59.0966)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8242CD #8DCD42
analogous
#4247CD #8242CD #C742CD
triadic
#8242CD #CD8242 #42CD82
tetradic
#8242CD #CD4247 #8DCD42 #42CDC7
square
#8242CD #CD4247 #8DCD42 #42CDC7
split-complementary
#8242CD #CDC742 #47CD42
monochromatic
#471F76 #642CA6 #8242CD #A272DA #C2A3E7

Accessibility & contrast

On white

5.82
#8242CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8242CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8242CD
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8242CD#FFFFFF#000000##FFFFFF
##8242CD1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0064CA
Tritanopia (blue-blind)
#726282
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8242cd;
/* rgb */ color: rgb(130, 66, 205);
/* oklch */ color: oklch(53.1% 0.204 300.7);
Tailwind
colors: {
  custom: {
    50: '#ac7bdd',
    500: '#8242cd',
    950: '#000000',
  },
}
SCSS
$custom: #8242cd;
$custom-light: #ac7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8242cd",
  "rgb": {
    "r": 130,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 267.626,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53105,
    "c": 0.20431,
    "h": 300.7
  },
  "luminance": 0.1305
}

Semantic roles & 50–950 ramp

primary
#8242CD
secondary
#B8D397
accent
#E1469A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8242CD

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

Preview Lab → · Contrast checker → · Palette generator →

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