#7240C5#7240C5

#7240C5 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.5% C 0.196 H 295.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7240C5
RGBrgb(114, 64, 197)
HSLhsl(263, 53%, 51%)
HSVhsv(263, 68%, 77%)
CMYKcmyk(42.1%, 67.5%, 0%, 22.7%)
CIE-LABlab(40.04, 50.02, -61.69)
CIE-LCHlch(40.04, 79.42, 309.04°)
OKLaboklab(50.5% 0.0853 -0.1762)
OKLCHoklch(50.5% 0.196 295.8)
XYZxyz(18.8482, 11.2750, 53.9957)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240C5 #93C540
analogous
#4050C5 #7240C5 #B440C5
triadic
#7240C5 #C57240 #40C572
tetradic
#7240C5 #C54050 #93C540 #40C5B4
square
#7240C5 #C54050 #93C540 #40C5B4
split-complementary
#7240C5 #C5B440 #50C540
monochromatic
#3C206A #572F99 #7240C5 #956FD3 #B79EE2

Accessibility & contrast

On white

6.45
#7240C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7240C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240C5
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240C5#FFFFFF#000000##FFFFFF
##7240C51.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#5C607D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7240c5;
/* rgb */ color: rgb(114, 64, 197);
/* oklch */ color: oklch(50.5% 0.196 295.8);
Tailwind
colors: {
  custom: {
    50: '#a178d7',
    500: '#7240c5',
    950: '#000000',
  },
}
SCSS
$custom: #7240c5;
$custom-light: #a178d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7240c5",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 262.556,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50501,
    "c": 0.1958,
    "h": 295.8
  },
  "luminance": 0.11275
}

Semantic roles & 50–950 ramp

primary
#7240C5
secondary
#B8CE93
accent
#DD4BA6
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7240C5

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

Preview Lab → · Contrast checker → · Palette generator →

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