#8240BC#8240BC

#8240BC is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.188 H 305.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8240BC
RGBrgb(130, 64, 188)
HSLhsl(272, 49%, 49%)
HSVhsv(272, 66%, 74%)
CMYKcmyk(30.9%, 66%, 0%, 26.3%)
CIE-LABlab(41.29, 51.04, -54.32)
CIE-LCHlch(41.29, 74.54, 313.22°)
OKLaboklab(51.61% 0.1084 -0.154)
OKLCHoklch(51.61% 0.188 305.1)
XYZxyz(20.1144, 12.0436, 48.8322)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240BC #7ABC40
analogous
#4440BC #8240BC #BC40B8
triadic
#8240BC #BC8240 #40BC82
tetradic
#8240BC #BC4440 #7ABC40 #40B8BC
square
#8240BC #BC4440 #7ABC40 #40B8BC
split-complementary
#8240BC #B8BC40 #40BC44
monochromatic
#432161 #62308E #8240BC #A06CCD #BD9ADD

Accessibility & contrast

On white

6.16
#8240BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8240BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240BC
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240BC#FFFFFF#000000##FFFFFF
##8240BC1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#1C62B9
Tritanopia (blue-blind)
#785B78
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8240bc;
/* rgb */ color: rgb(130, 64, 188);
/* oklch */ color: oklch(51.6% 0.188 305.1);
Tailwind
colors: {
  custom: {
    50: '#ab79d1',
    500: '#8240bc',
    950: '#000000',
  },
}
SCSS
$custom: #8240bc;
$custom-light: #ab79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8240bc",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 271.935,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51612,
    "c": 0.18834,
    "h": 305.1
  },
  "luminance": 0.12043
}

Semantic roles & 50–950 ramp

primary
#8240BC
secondary
#AAC98F
accent
#D94F8F
background
#FAF7FC
surface
#F5EEF9
border
#CFC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8240BC

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

Preview Lab → · Contrast checker → · Palette generator →

#8240BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva