#7151E7#7151E7

#7151E7 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.5% C 0.215 H 287.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7151E7
RGBrgb(113, 81, 231)
HSLhsl(253, 76%, 61%)
HSVhsv(253, 65%, 91%)
CMYKcmyk(51.1%, 64.9%, 0%, 9.4%)
CIE-LABlab(45.86, 50.15, -71.72)
CIE-LCHlch(45.86, 87.52, 304.97°)
OKLaboklab(55.48% 0.0627 -0.2058)
OKLCHoklch(55.48% 0.215 287)
XYZxyz(24.1720, 15.1639, 77.2391)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151E7 #C7E751
analogous
#517CE7 #7151E7 #BC51E7
triadic
#7151E7 #E77151 #51E771
tetradic
#7151E7 #E7517C #C7E751 #51E7BC
square
#7151E7 #E7517C #C7E751 #51E7BC
split-complementary
#7151E7 #E7BC51 #7CE751
monochromatic
#3617A7 #471EDC #7151E7 #9D87EE #C9BDF6

Accessibility & contrast

On white

5.21
#7151E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7151E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151E7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151E7#FFFFFF#000000##FFFFFF
##7151E71.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EC
Deuteranopia (green-blind)
#0068E4
Tritanopia (blue-blind)
#447695
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7151e7;
/* rgb */ color: rgb(113, 81, 231);
/* oklch */ color: oklch(55.5% 0.215 287.0);
Tailwind
colors: {
  custom: {
    50: '#a384f0',
    500: '#7151e7',
    950: '#000000',
  },
}
SCSS
$custom: #7151e7;
$custom-light: #a384f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7151e7",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 252.8,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.55476,
    "c": 0.21514,
    "h": 287
  },
  "luminance": 0.15165
}

Semantic roles & 50–950 ramp

primary
#7151E7
secondary
#DAE6AE
accent
#D80EAD
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7151E7

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

Preview Lab → · Contrast checker → · Palette generator →

#7151E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva