#8240AF#8240AF

#8240AF is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.174 H 308.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8240AF
RGBrgb(130, 64, 175)
HSLhsl(276, 46%, 47%)
HSVhsv(276, 63%, 69%)
CMYKcmyk(25.7%, 63.4%, 0%, 31.4%)
CIE-LABlab(40.42, 47.99, -48.05)
CIE-LCHlch(40.42, 67.92, 314.96°)
OKLaboklab(50.72% 0.1093 -0.1356)
OKLCHoklch(50.72% 0.174 308.8)
XYZxyz(18.7756, 11.5081, 41.7813)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240AF #6DAF40
analogous
#4B40AF #8240AF #AF40A5
triadic
#8240AF #AF8240 #40AF82
tetradic
#8240AF #AF4B40 #6DAF40 #40A5AF
square
#8240AF #AF4B40 #6DAF40 #40A5AF
split-complementary
#8240AF #A5AF40 #40AF4B
monochromatic
#3F1F55 #613082 #8240AF #9F65C7 #BB92D7

Accessibility & contrast

On white

6.36
#8240AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8240AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240AF
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240AF#FFFFFF#000000##FFFFFF
##8240AF1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB2
Deuteranopia (green-blind)
#2F60AC
Tritanopia (blue-blind)
#7B5672
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8240af;
/* rgb */ color: rgb(130, 64, 175);
/* oklch */ color: oklch(50.7% 0.174 308.8);
Tailwind
colors: {
  custom: {
    50: '#aa79c7',
    500: '#8240af',
    950: '#000000',
  },
}
SCSS
$custom: #8240af;
$custom-light: #aa79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8240af",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 275.676,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50716,
    "c": 0.17417,
    "h": 308.8
  },
  "luminance": 0.11508
}

Semantic roles & 50–950 ramp

primary
#8240AF
secondary
#A0C388
accent
#D65287
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8240AF

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

Preview Lab → · Contrast checker → · Palette generator →

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