#7240C3#7240C3

#7240C3 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.3% C 0.193 H 296.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#7240C3
RGBrgb(114, 64, 195)
HSLhsl(263, 52%, 51%)
HSVhsv(263, 67%, 76%)
CMYKcmyk(41.5%, 67.2%, 0%, 23.5%)
CIE-LABlab(39.89, 49.50, -60.77)
CIE-LCHlch(39.89, 78.37, 309.16°)
OKLaboklab(50.35% 0.0856 -0.1735)
OKLCHoklch(50.35% 0.193 296.3)
XYZxyz(18.6206, 11.1839, 52.7968)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240C3 #91C340
analogous
#404FC3 #7240C3 #B340C3
triadic
#7240C3 #C37240 #40C372
tetradic
#7240C3 #C3404F #91C340 #40C3B3
square
#7240C3 #C3404F #91C340 #40C3B3
split-complementary
#7240C3 #C3B340 #4FC340
monochromatic
#3C2168 #572F97 #7240C3 #946FD2 #B79DE0

Accessibility & contrast

On white

6.49
#7240C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7240C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240C3
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240C3#FFFFFF#000000##FFFFFF
##7240C31.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC7
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#5D5F7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7240c3;
/* rgb */ color: rgb(114, 64, 195);
/* oklch */ color: oklch(50.3% 0.193 296.3);
Tailwind
colors: {
  custom: {
    50: '#a178d6',
    500: '#7240c3',
    950: '#000000',
  },
}
SCSS
$custom: #7240c3;
$custom-light: #a178d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7240c3",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 262.901,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50345,
    "c": 0.19349,
    "h": 296.3
  },
  "luminance": 0.11184
}

Semantic roles & 50–950 ramp

primary
#7240C3
secondary
#B6CC92
accent
#DC4CA5
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7240C3

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

Preview Lab → · Contrast checker → · Palette generator →

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