#7240C4#7240C4

#7240C4 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.4% C 0.195 H 296.0°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#7240C4
RGBrgb(114, 64, 196)
HSLhsl(263, 53%, 51%)
HSVhsv(263, 67%, 77%)
CMYKcmyk(41.8%, 67.3%, 0%, 23.1%)
CIE-LABlab(39.96, 49.76, -61.23)
CIE-LCHlch(39.96, 78.90, 309.10°)
OKLaboklab(50.42% 0.0854 -0.1749)
OKLCHoklch(50.42% 0.195 296)
XYZxyz(18.7340, 11.2293, 53.3943)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240C4 #92C440
analogous
#4050C4 #7240C4 #B440C4
triadic
#7240C4 #C47240 #40C472
tetradic
#7240C4 #C44050 #92C440 #40C4B4
square
#7240C4 #C44050 #92C440 #40C4B4
split-complementary
#7240C4 #C4B440 #50C440
monochromatic
#3C2069 #572F98 #7240C4 #956FD2 #B79EE1

Accessibility & contrast

On white

6.47
#7240C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7240C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240C4
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240C4#FFFFFF#000000##FFFFFF
##7240C41.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#5D607D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7240c4;
/* rgb */ color: rgb(114, 64, 196);
/* oklch */ color: oklch(50.4% 0.195 296.0);
Tailwind
colors: {
  custom: {
    50: '#a178d7',
    500: '#7240c4',
    950: '#000000',
  },
}
SCSS
$custom: #7240c4;
$custom-light: #a178d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7240c4",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 262.727,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50422,
    "c": 0.19464,
    "h": 296
  },
  "luminance": 0.1123
}

Semantic roles & 50–950 ramp

primary
#7240C4
secondary
#B7CD93
accent
#DC4CA5
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7240C4

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

Preview Lab → · Contrast checker → · Palette generator →

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