#7240AA#7240AA

#7240AA is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.164 H 302.4°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7240AA
RGBrgb(114, 64, 170)
HSLhsl(268, 45%, 46%)
HSVhsv(268, 62%, 67%)
CMYKcmyk(32.9%, 62.4%, 0%, 33.3%)
CIE-LABlab(38.10, 43.02, -48.92)
CIE-LCHlch(38.10, 65.15, 311.33°)
OKLaboklab(48.49% 0.088 -0.1387)
OKLCHoklch(48.49% 0.164 302.4)
XYZxyz(16.0268, 10.1465, 39.1365)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240AA #78AA40
analogous
#4043AA #7240AA #A740AA
triadic
#7240AA #AA7240 #40AA72
tetradic
#7240AA #AA4043 #78AA40 #40AAA7
square
#7240AA #AA4043 #78AA40 #40AAA7
split-complementary
#7240AA #AAA740 #43AA40
monochromatic
#361F51 #542F7E #7240AA #9163C4 #B08FD5

Accessibility & contrast

On white

6.93
#7240AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7240AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7240AA#FFFFFF#000000##FFFFFF
##7240AA1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#2059A8
Tritanopia (blue-blind)
#67566F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7240aa;
/* rgb */ color: rgb(114, 64, 170);
/* oklch */ color: oklch(48.5% 0.164 302.4);
Tailwind
colors: {
  custom: {
    50: '#9e77c4',
    500: '#7240aa',
    950: '#000000',
  },
}
SCSS
$custom: #7240aa;
$custom-light: #9e77c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7240aa",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 268.302,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48492,
    "c": 0.16424,
    "h": 302.4
  },
  "luminance": 0.10146
}

Semantic roles & 50–950 ramp

primary
#7240AA
secondary
#A5C086
accent
#D55398
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7240AA

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

Preview Lab → · Contrast checker → · Palette generator →

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