#7240A2#7240A2

#7240A2 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 47.9% C 0.155 H 304.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7240A2
RGBrgb(114, 64, 162)
HSLhsl(271, 43%, 44%)
HSVhsv(271, 60%, 64%)
CMYKcmyk(29.6%, 60.5%, 0%, 36.5%)
CIE-LABlab(37.58, 41.01, -44.98)
CIE-LCHlch(37.58, 60.87, 312.36°)
OKLaboklab(47.94% 0.0882 -0.1272)
OKLCHoklch(47.94% 0.155 304.8)
XYZxyz(15.2930, 9.8529, 35.2716)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240A2 #70A240
analogous
#4140A2 #7240A2 #A240A1
triadic
#7240A2 #A27240 #40A272
tetradic
#7240A2 #A24140 #70A240 #40A1A2
square
#7240A2 #A24140 #70A240 #40A1A2
split-complementary
#7240A2 #A1A240 #40A241
monochromatic
#341D4A #532F76 #7240A2 #915FC0 #AF8BD1

Accessibility & contrast

On white

7.07
#7240A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7240A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7240A2#FFFFFF#000000##FFFFFF
##7240A21.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1157A5
Deuteranopia (green-blind)
#2A59A0
Tritanopia (blue-blind)
#6A546B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7240a2;
/* rgb */ color: rgb(114, 64, 162);
/* oklch */ color: oklch(47.9% 0.155 304.8);
Tailwind
colors: {
  custom: {
    50: '#9e77be',
    500: '#7240a2',
    950: '#000000',
  },
}
SCSS
$custom: #7240a2;
$custom-light: #9e77be;
$custom-dark: #000000;
JSON
{
  "hex": "#7240a2",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 270.612,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4794,
    "c": 0.15476,
    "h": 304.8
  },
  "luminance": 0.09853
}

Semantic roles & 50–950 ramp

primary
#7240A2
secondary
#9EBC82
accent
#D35593
background
#FAF7FB
surface
#F3EDF7
border
#CDC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #7240A2

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

Preview Lab → · Contrast checker → · Palette generator →

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