#7240BD#7240BD

#7240BD is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.9% C 0.187 H 297.6°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7240BD
RGBrgb(114, 64, 189)
HSLhsl(264, 49%, 50%)
HSVhsv(264, 66%, 74%)
CMYKcmyk(39.7%, 66.1%, 0%, 25.9%)
CIE-LABlab(39.44, 47.92, -57.98)
CIE-LCHlch(39.44, 75.22, 309.57°)
OKLaboklab(49.88% 0.0864 -0.1653)
OKLCHoklch(49.88% 0.187 297.6)
XYZxyz(17.9558, 10.9180, 49.2956)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240BD #8BBD40
analogous
#404DBD #7240BD #B140BD
triadic
#7240BD #BD7240 #40BD72
tetradic
#7240BD #BD404D #8BBD40 #40BDB1
square
#7240BD #BD404D #8BBD40 #40BDB1
split-complementary
#7240BD #BDB140 #4DBD40
monochromatic
#3B2162 #56318F #7240BD #936DCD #B59ADD

Accessibility & contrast

On white

6.60
#7240BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7240BD
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240BD#FFFFFF#000000##FFFFFF
##7240BD1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#605D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7240bd;
/* rgb */ color: rgb(114, 64, 189);
/* oklch */ color: oklch(49.9% 0.187 297.6);
Tailwind
colors: {
  custom: {
    50: '#a078d2',
    500: '#7240bd',
    950: '#000000',
  },
}
SCSS
$custom: #7240bd;
$custom-light: #a078d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7240bd",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 264,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49883,
    "c": 0.18654,
    "h": 297.6
  },
  "luminance": 0.10918
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7240BD

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

Preview Lab → · Contrast checker → · Palette generator →

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