#7240D7#7240D7

#7240D7 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.9% C 0.216 H 292.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7240D7
RGBrgb(114, 64, 215)
HSLhsl(260, 65%, 55%)
HSVhsv(260, 70%, 84%)
CMYKcmyk(47%, 70.2%, 0%, 15.7%)
CIE-LABlab(41.45, 54.80, -69.79)
CIE-LCHlch(41.45, 88.73, 308.14°)
OKLaboklab(51.95% 0.0823 -0.2)
OKLCHoklch(51.95% 0.216 292.4)
XYZxyz(21.0351, 12.1498, 65.5136)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240D7 #A5D740
analogous
#4059D7 #7240D7 #BE40D7
triadic
#7240D7 #D77240 #40D772
tetradic
#7240D7 #D74059 #A5D740 #40D7BE
square
#7240D7 #D74059 #A5D740 #40D7BE
split-complementary
#7240D7 #D7BE40 #59D740
monochromatic
#3D1B81 #5526B4 #7240D7 #9773E2 #BDA5EC

Accessibility & contrast

On white

6.12
#7240D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7240D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240D7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240D7#FFFFFF#000000##FFFFFF
##7240D71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#536787
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7240d7;
/* rgb */ color: rgb(114, 64, 215);
/* oklch */ color: oklch(51.9% 0.216 292.4);
Tailwind
colors: {
  custom: {
    50: '#a379e4',
    500: '#7240d7',
    950: '#000000',
  },
}
SCSS
$custom: #7240d7;
$custom-light: #a379e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7240d7",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 259.868,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5195,
    "c": 0.2163,
    "h": 292.4
  },
  "luminance": 0.1215
}

Semantic roles & 50–950 ramp

primary
#7240D7
secondary
#C4D99A
accent
#E83FB0
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7240D7

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

Preview Lab → · Contrast checker → · Palette generator →

#7240D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva