#7240BC#7240BC

#7240BC is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.185 H 297.8°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#7240BC
RGBrgb(114, 64, 188)
HSLhsl(264, 49%, 49%)
HSVhsv(264, 66%, 74%)
CMYKcmyk(39.4%, 66%, 0%, 26.3%)
CIE-LABlab(39.37, 47.66, -57.51)
CIE-LCHlch(39.37, 74.70, 309.65°)
OKLaboklab(49.81% 0.0865 -0.164)
OKLCHoklch(49.81% 0.185 297.8)
XYZxyz(17.8476, 10.8748, 48.7259)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240BC #8ABC40
analogous
#404CBC #7240BC #B040BC
triadic
#7240BC #BC7240 #40BC72
tetradic
#7240BC #BC404C #8ABC40 #40BCB0
square
#7240BC #BC404C #8ABC40 #40BCB0
split-complementary
#7240BC #BCB040 #4CBC40
monochromatic
#3B2161 #56308E #7240BC #936CCD #B59ADD

Accessibility & contrast

On white

6.61
#7240BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7240BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240BC
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240BC#FFFFFF#000000##FFFFFF
##7240BC1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#605D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7240bc;
/* rgb */ color: rgb(114, 64, 188);
/* oklch */ color: oklch(49.8% 0.185 297.8);
Tailwind
colors: {
  custom: {
    50: '#a078d1',
    500: '#7240bc',
    950: '#000000',
  },
}
SCSS
$custom: #7240bc;
$custom-light: #a078d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7240bc",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 264.194,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49808,
    "c": 0.18537,
    "h": 297.8
  },
  "luminance": 0.10875
}

Semantic roles & 50–950 ramp

primary
#7240BC
secondary
#B1C98F
accent
#D94FA1
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7240BC

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

Preview Lab → · Contrast checker → · Palette generator →

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