#7240D2#7240D2

#7240D2 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.211 H 293.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7240D2
RGBrgb(114, 64, 210)
HSLhsl(261, 62%, 54%)
HSVhsv(261, 70%, 82%)
CMYKcmyk(45.7%, 69.5%, 0%, 17.6%)
CIE-LABlab(41.05, 53.47, -67.57)
CIE-LCHlch(41.05, 86.16, 308.35°)
OKLaboklab(51.54% 0.0832 -0.1935)
OKLCHoklch(51.54% 0.211 293.3)
XYZxyz(20.4025, 11.8967, 62.1816)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240D2 #A0D240
analogous
#4057D2 #7240D2 #BB40D2
triadic
#7240D2 #D27240 #40D272
tetradic
#7240D2 #D24057 #A0D240 #40D2BB
square
#7240D2 #D24057 #A0D240 #40D2BB
split-complementary
#7240D2 #D2BB40 #57D240
monochromatic
#3D1D7B #5629AC #7240D2 #9772DE #BBA3E9

Accessibility & contrast

On white

6.21
#7240D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7240D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240D2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240D2#FFFFFF#000000##FFFFFF
##7240D21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005ECF
Tritanopia (blue-blind)
#566584
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7240d2;
/* rgb */ color: rgb(114, 64, 210);
/* oklch */ color: oklch(51.5% 0.211 293.3);
Tailwind
colors: {
  custom: {
    50: '#a279e1',
    500: '#7240d2',
    950: '#000000',
  },
}
SCSS
$custom: #7240d2;
$custom-light: #a279e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7240d2",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 260.548,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51539,
    "c": 0.21065,
    "h": 293.3
  },
  "luminance": 0.11897
}

Semantic roles & 50–950 ramp

primary
#7240D2
secondary
#C1D698
accent
#E543AD
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7240D2

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

Preview Lab → · Contrast checker → · Palette generator →

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