#7240BE#7240BE

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

Color values

HEX#7240BE
RGBrgb(114, 64, 190)
HSLhsl(264, 50%, 50%)
HSVhsv(264, 66%, 75%)
CMYKcmyk(40%, 66.3%, 0%, 25.5%)
CIE-LABlab(39.52, 48.18, -58.45)
CIE-LCHlch(39.52, 75.75, 309.50°)
OKLaboklab(49.96% 0.0862 -0.1667)
OKLCHoklch(49.96% 0.188 297.3)
XYZxyz(18.0647, 10.9616, 49.8693)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240BE #8CBE40
analogous
#404DBE #7240BE #B140BE
triadic
#7240BE #BE7240 #40BE72
tetradic
#7240BE #BE404D #8CBE40 #40BEB1
square
#7240BE #BE404D #8CBE40 #40BEB1
split-complementary
#7240BE #BEB140 #4DBE40
monochromatic
#3B2162 #573190 #7240BE #946DCE #B59BDD

Accessibility & contrast

On white

6.58
#7240BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7240BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240BE
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240BE#FFFFFF#000000##FFFFFF
##7240BE1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#5F5D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7240be;
/* rgb */ color: rgb(114, 64, 190);
/* oklch */ color: oklch(50.0% 0.188 297.3);
Tailwind
colors: {
  custom: {
    50: '#a078d2',
    500: '#7240be',
    950: '#000000',
  },
}
SCSS
$custom: #7240be;
$custom-light: #a078d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7240be",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 263.81,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.4996,
    "c": 0.1877,
    "h": 297.3
  },
  "luminance": 0.10962
}

Semantic roles & 50–950 ramp

primary
#7240BE
secondary
#B3C990
accent
#D94FA2
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7240BE

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

Preview Lab → · Contrast checker → · Palette generator →

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