#8242CE#8242CE

#8242CE is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.2% C 0.205 H 300.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8242CE
RGBrgb(130, 66, 206)
HSLhsl(267, 59%, 53%)
HSVhsv(267, 68%, 81%)
CMYKcmyk(36.9%, 68%, 0%, 19.2%)
CIE-LABlab(42.91, 54.42, -62.16)
CIE-LCHlch(42.91, 82.61, 311.20°)
OKLaboklab(53.18% 0.1041 -0.1771)
OKLCHoklch(53.18% 0.205 300.4)
XYZxyz(22.2920, 13.0983, 59.7343)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8242CE #8ECE42
analogous
#4248CE #8242CE #C842CE
triadic
#8242CE #CE8242 #42CE82
tetradic
#8242CE #CE4248 #8ECE42 #42CEC8
square
#8242CE #CE4248 #8ECE42 #42CEC8
split-complementary
#8242CE #CEC842 #48CE42
monochromatic
#471F77 #642BA7 #8242CE #A273DB #C2A3E7

Accessibility & contrast

On white

5.80
#8242CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8242CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8242CE
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8242CE#FFFFFF#000000##FFFFFF
##8242CE1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0064CB
Tritanopia (blue-blind)
#716383
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8242ce;
/* rgb */ color: rgb(130, 66, 206);
/* oklch */ color: oklch(53.2% 0.205 300.4);
Tailwind
colors: {
  custom: {
    50: '#ac7bde',
    500: '#8242ce',
    950: '#000000',
  },
}
SCSS
$custom: #8242ce;
$custom-light: #ac7bde;
$custom-dark: #000000;
JSON
{
  "hex": "#8242ce",
  "rgb": {
    "r": 130,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 267.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5318,
    "c": 0.2054,
    "h": 300.4
  },
  "luminance": 0.13098
}

Semantic roles & 50–950 ramp

primary
#8242CE
secondary
#B8D498
accent
#E2469B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8242CE

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

Preview Lab → · Contrast checker → · Palette generator →

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