#7240C2#7240C2

#7240C2 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.3% C 0.192 H 296.5°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#7240C2
RGBrgb(114, 64, 194)
HSLhsl(263, 52%, 51%)
HSVhsv(263, 67%, 76%)
CMYKcmyk(41.2%, 67%, 0%, 23.9%)
CIE-LABlab(39.81, 49.23, -60.30)
CIE-LCHlch(39.81, 77.85, 309.23°)
OKLaboklab(50.27% 0.0857 -0.1722)
OKLCHoklch(50.27% 0.192 296.5)
XYZxyz(18.5079, 11.1389, 52.2034)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240C2 #90C240
analogous
#404FC2 #7240C2 #B340C2
triadic
#7240C2 #C27240 #40C272
tetradic
#7240C2 #C2404F #90C240 #40C2B3
square
#7240C2 #C2404F #90C240 #40C2B3
split-complementary
#7240C2 #C2B340 #4FC240
monochromatic
#3C2167 #573095 #7240C2 #946ED1 #B69DE0

Accessibility & contrast

On white

6.51
#7240C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7240C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240C2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240C2#FFFFFF#000000##FFFFFF
##7240C21.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#5E5F7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7240c2;
/* rgb */ color: rgb(114, 64, 194);
/* oklch */ color: oklch(50.3% 0.192 296.5);
Tailwind
colors: {
  custom: {
    50: '#a178d5',
    500: '#7240c2',
    950: '#000000',
  },
}
SCSS
$custom: #7240c2;
$custom-light: #a178d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7240c2",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 263.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50267,
    "c": 0.19234,
    "h": 296.5
  },
  "luminance": 0.11139
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7240C2

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

Preview Lab → · Contrast checker → · Palette generator →

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