#7240C7#7240C7

#7240C7 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.198 H 295.4°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7240C7
RGBrgb(114, 64, 199)
HSLhsl(262, 55%, 52%)
HSVhsv(262, 68%, 78%)
CMYKcmyk(42.7%, 67.8%, 0%, 22%)
CIE-LABlab(40.19, 50.55, -62.60)
CIE-LCHlch(40.19, 80.46, 308.92°)
OKLaboklab(50.66% 0.085 -0.1789)
OKLCHoklch(50.66% 0.198 295.4)
XYZxyz(19.0789, 11.3673, 55.2106)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240C7 #95C740
analogous
#4052C7 #7240C7 #B640C7
triadic
#7240C7 #C77240 #40C772
tetradic
#7240C7 #C74052 #95C740 #40C7B6
square
#7240C7 #C74052 #95C740 #40C7B6
split-complementary
#7240C7 #C7B640 #52C740
monochromatic
#3C206D #572E9C #7240C7 #956FD5 #B89FE3

Accessibility & contrast

On white

6.41
#7240C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7240C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240C7
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240C7#FFFFFF#000000##FFFFFF
##7240C71.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#5B617E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7240c7;
/* rgb */ color: rgb(114, 64, 199);
/* oklch */ color: oklch(50.7% 0.198 295.4);
Tailwind
colors: {
  custom: {
    50: '#a178d9',
    500: '#7240c7',
    950: '#000000',
  },
}
SCSS
$custom: #7240c7;
$custom-light: #a178d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7240c7",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 262.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50657,
    "c": 0.1981,
    "h": 295.4
  },
  "luminance": 0.11368
}

Semantic roles & 50–950 ramp

primary
#7240C7
secondary
#B9CF94
accent
#DE4AA7
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7240C7

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

Preview Lab → · Contrast checker → · Palette generator →

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