#7240BA#7240BA

#7240BA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.183 H 298.3°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7240BA
RGBrgb(114, 64, 186)
HSLhsl(265, 49%, 49%)
HSVhsv(265, 66%, 73%)
CMYKcmyk(38.7%, 65.6%, 0%, 27.1%)
CIE-LABlab(39.22, 47.14, -56.58)
CIE-LCHlch(39.22, 73.64, 309.80°)
OKLaboklab(49.66% 0.0867 -0.1612)
OKLCHoklch(49.66% 0.183 298.3)
XYZxyz(17.6335, 10.7891, 47.5983)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240BA #88BA40
analogous
#404BBA #7240BA #AF40BA
triadic
#7240BA #BA7240 #40BA72
tetradic
#7240BA #BA404B #88BA40 #40BAAF
square
#7240BA #BA404B #88BA40 #40BAAF
split-complementary
#7240BA #BAAF40 #4BBA40
monochromatic
#3A215F #56308C #7240BA #936BCC #B499DC

Accessibility & contrast

On white

6.65
#7240BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7240BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240BA
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240BA#FFFFFF#000000##FFFFFF
##7240BA1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#615C77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7240ba;
/* rgb */ color: rgb(114, 64, 186);
/* oklch */ color: oklch(49.7% 0.183 298.3);
Tailwind
colors: {
  custom: {
    50: '#a078d0',
    500: '#7240ba',
    950: '#000000',
  },
}
SCSS
$custom: #7240ba;
$custom-light: #a078d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7240ba",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 264.59,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49657,
    "c": 0.18305,
    "h": 298.3
  },
  "luminance": 0.10789
}

Semantic roles & 50–950 ramp

primary
#7240BA
secondary
#B0C88E
accent
#D84FA0
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7240BA

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

Preview Lab → · Contrast checker → · Palette generator →

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