#7240BF#7240BF

#7240BF is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.189 H 297.1°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7240BF
RGBrgb(114, 64, 191)
HSLhsl(264, 50%, 50%)
HSVhsv(264, 66%, 75%)
CMYKcmyk(40.3%, 66.5%, 0%, 25.1%)
CIE-LABlab(39.59, 48.45, -58.91)
CIE-LCHlch(39.59, 76.27, 309.43°)
OKLaboklab(50.04% 0.0861 -0.1681)
OKLCHoklch(50.04% 0.189 297.1)
XYZxyz(18.1744, 11.0055, 50.4468)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240BF #8DBF40
analogous
#404EBF #7240BF #B140BF
triadic
#7240BF #BF7240 #40BF72
tetradic
#7240BF #BF404E #8DBF40 #40BFB1
square
#7240BF #BF404E #8DBF40 #40BFB1
split-complementary
#7240BF #BFB140 #4EBF40
monochromatic
#3B2163 #573191 #7240BF #946ECE #B69CDE

Accessibility & contrast

On white

6.56
#7240BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7240BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240BF
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240BF#FFFFFF#000000##FFFFFF
##7240BF1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#5F5E7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7240bf;
/* rgb */ color: rgb(114, 64, 191);
/* oklch */ color: oklch(50.0% 0.189 297.1);
Tailwind
colors: {
  custom: {
    50: '#a078d3',
    500: '#7240bf',
    950: '#000000',
  },
}
SCSS
$custom: #7240bf;
$custom-light: #a078d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7240bf",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 263.622,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.50036,
    "c": 0.18886,
    "h": 297.1
  },
  "luminance": 0.11006
}

Semantic roles & 50–950 ramp

primary
#7240BF
secondary
#B3CA91
accent
#D94EA3
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7240BF

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

Preview Lab → · Contrast checker → · Palette generator →

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