#8242CF#8242CF

#8242CF is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.206 H 300.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8242CF
RGBrgb(130, 66, 207)
HSLhsl(267, 59%, 54%)
HSVhsv(267, 68%, 81%)
CMYKcmyk(37.2%, 68.1%, 0%, 18.8%)
CIE-LABlab(42.98, 54.67, -62.61)
CIE-LCHlch(42.98, 83.12, 311.12°)
OKLaboklab(53.26% 0.1039 -0.1784)
OKLCHoklch(53.26% 0.207 300.2)
XYZxyz(22.4138, 13.1471, 60.3762)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8242CF #8FCF42
analogous
#4248CF #8242CF #C842CF
triadic
#8242CF #CF8242 #42CF82
tetradic
#8242CF #CF4248 #8FCF42 #42CFC8
square
#8242CF #CF4248 #8FCF42 #42CFC8
split-complementary
#8242CF #CFC842 #48CF42
monochromatic
#471F78 #642BA9 #8242CF #A273DB #C3A4E8

Accessibility & contrast

On white

5.79
#8242CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8242CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8242CF
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8242CF#FFFFFF#000000##FFFFFF
##8242CF1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8242cf;
/* rgb */ color: rgb(130, 66, 207);
/* oklch */ color: oklch(53.3% 0.206 300.2);
Tailwind
colors: {
  custom: {
    50: '#ac7bdf',
    500: '#8242cf',
    950: '#000000',
  },
}
SCSS
$custom: #8242cf;
$custom-light: #ac7bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8242cf",
  "rgb": {
    "r": 130,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 267.234,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53255,
    "c": 0.2065,
    "h": 300.2
  },
  "luminance": 0.13147
}

Semantic roles & 50–950 ramp

primary
#8242CF
secondary
#B9D598
accent
#E3459B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8242CF

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

Preview Lab → · Contrast checker → · Palette generator →

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