#8242CB#8242CB

#8242CB is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.0% C 0.202 H 301.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8242CB
RGBrgb(130, 66, 203)
HSLhsl(268, 57%, 53%)
HSVhsv(268, 67%, 80%)
CMYKcmyk(36%, 67.5%, 0%, 20.4%)
CIE-LABlab(42.69, 53.68, -60.77)
CIE-LCHlch(42.69, 81.09, 311.45°)
OKLaboklab(52.96% 0.1045 -0.173)
OKLCHoklch(52.96% 0.202 301.1)
XYZxyz(21.9310, 12.9539, 57.8333)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8242CB #8BCB42
analogous
#4247CB #8242CB #C642CB
triadic
#8242CB #CB8242 #42CB82
tetradic
#8242CB #CB4247 #8BCB42 #42CBC6
square
#8242CB #CB4247 #8BCB42 #42CBC6
split-complementary
#8242CB #CBC642 #47CB42
monochromatic
#472073 #642DA3 #8242CB #A272D8 #C1A2E5

Accessibility & contrast

On white

5.85
#8242CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8242CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8242CB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8242CB#FFFFFF#000000##FFFFFF
##8242CB1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#726281
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8242cb;
/* rgb */ color: rgb(130, 66, 203);
/* oklch */ color: oklch(53.0% 0.202 301.1);
Tailwind
colors: {
  custom: {
    50: '#ac7bdc',
    500: '#8242cb',
    950: '#000000',
  },
}
SCSS
$custom: #8242cb;
$custom-light: #ac7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8242cb",
  "rgb": {
    "r": 130,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 268.029,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52956,
    "c": 0.20212,
    "h": 301.1
  },
  "luminance": 0.12954
}

Semantic roles & 50–950 ramp

primary
#8242CB
secondary
#B6D297
accent
#E04899
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8242CB

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

Preview Lab → · Contrast checker → · Palette generator →

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