#7240CE#7240CE

#7240CE is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.206 H 294.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7240CE
RGBrgb(114, 64, 206)
HSLhsl(261, 59%, 53%)
HSVhsv(261, 69%, 81%)
CMYKcmyk(44.7%, 68.9%, 0%, 19.2%)
CIE-LABlab(40.74, 52.40, -65.77)
CIE-LCHlch(40.74, 84.10, 308.54°)
OKLaboklab(51.22% 0.0839 -0.1883)
OKLCHoklch(51.22% 0.206 294)
XYZxyz(19.9104, 11.6999, 59.5898)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240CE #9CCE40
analogous
#4055CE #7240CE #B940CE
triadic
#7240CE #CE7240 #40CE72
tetradic
#7240CE #CE4055 #9CCE40 #40CEB9
square
#7240CE #CE4055 #9CCE40 #40CEB9
split-complementary
#7240CE #CEB940 #55CE40
monochromatic
#3D1E75 #562BA6 #7240CE #9671DA #BAA1E7

Accessibility & contrast

On white

6.29
#7240CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7240CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240CE
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240CE#FFFFFF#000000##FFFFFF
##7240CE1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#586382
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7240ce;
/* rgb */ color: rgb(114, 64, 206);
/* oklch */ color: oklch(51.2% 0.206 294.0);
Tailwind
colors: {
  custom: {
    50: '#a279de',
    500: '#7240ce',
    950: '#000000',
  },
}
SCSS
$custom: #7240ce;
$custom-light: #a279de;
$custom-dark: #000000;
JSON
{
  "hex": "#7240ce",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 261.127,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51215,
    "c": 0.20611,
    "h": 294
  },
  "luminance": 0.117
}

Semantic roles & 50–950 ramp

primary
#7240CE
secondary
#BED496
accent
#E245AB
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7240CE

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

Preview Lab → · Contrast checker → · Palette generator →

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