#7240C8#7240C8

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

Color values

HEX#7240C8
RGBrgb(114, 64, 200)
HSLhsl(262, 55%, 52%)
HSVhsv(262, 68%, 78%)
CMYKcmyk(43%, 68%, 0%, 21.6%)
CIE-LABlab(40.27, 50.81, -63.06)
CIE-LCHlch(40.27, 80.98, 308.86°)
OKLaboklab(50.74% 0.0849 -0.1803)
OKLCHoklch(50.74% 0.199 295.2)
XYZxyz(19.1954, 11.4139, 55.8241)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240C8 #96C840
analogous
#4052C8 #7240C8 #B640C8
triadic
#7240C8 #C87240 #40C872
tetradic
#7240C8 #C84052 #96C840 #40C8B6
square
#7240C8 #C84052 #96C840 #40C8B6
split-complementary
#7240C8 #C8B640 #52C840
monochromatic
#3C206E #572D9D #7240C8 #9570D6 #B89FE3

Accessibility & contrast

On white

6.40
#7240C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7240C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240C8
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240C8#FFFFFF#000000##FFFFFF
##7240C81.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#5B617F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7240c8;
/* rgb */ color: rgb(114, 64, 200);
/* oklch */ color: oklch(50.7% 0.199 295.2);
Tailwind
colors: {
  custom: {
    50: '#a178da',
    500: '#7240c8',
    950: '#000000',
  },
}
SCSS
$custom: #7240c8;
$custom-light: #a178da;
$custom-dark: #000000;
JSON
{
  "hex": "#7240c8",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 262.059,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50736,
    "c": 0.19924,
    "h": 295.2
  },
  "luminance": 0.11414
}

Semantic roles & 50–950 ramp

primary
#7240C8
secondary
#BAD094
accent
#DF49A8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7240C8

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

Preview Lab → · Contrast checker → · Palette generator →

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