#7151E4#7151E4

#7151E4 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.2% C 0.212 H 287.3°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7151E4
RGBrgb(113, 81, 228)
HSLhsl(253, 73%, 61%)
HSVhsv(253, 64%, 89%)
CMYKcmyk(50.4%, 64.5%, 0%, 10.6%)
CIE-LABlab(45.63, 49.30, -70.39)
CIE-LCHlch(45.63, 85.94, 305.00°)
OKLaboklab(55.24% 0.0631 -0.2019)
OKLCHoklch(55.24% 0.212 287.3)
XYZxyz(23.7520, 14.9959, 75.0267)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151E4 #C4E451
analogous
#517AE4 #7151E4 #BA51E4
triadic
#7151E4 #E47151 #51E471
tetradic
#7151E4 #E4517A #C4E451 #51E4BA
square
#7151E4 #E4517A #C4E451 #51E4BA
split-complementary
#7151E4 #E4BA51 #7AE451
monochromatic
#3719A2 #4921D7 #7151E4 #9C86EC #C7BBF4

Accessibility & contrast

On white

5.25
#7151E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7151E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151E4
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151E4#FFFFFF#000000##FFFFFF
##7151E41.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E9
Deuteranopia (green-blind)
#0068E1
Tritanopia (blue-blind)
#477593
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7151e4;
/* rgb */ color: rgb(113, 81, 228);
/* oklch */ color: oklch(55.2% 0.212 287.3);
Tailwind
colors: {
  custom: {
    50: '#a384ee',
    500: '#7151e4',
    950: '#000000',
  },
}
SCSS
$custom: #7151e4;
$custom-light: #a384ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7151e4",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 253.061,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.55239,
    "c": 0.21152,
    "h": 287.3
  },
  "luminance": 0.14997
}

Semantic roles & 50–950 ramp

primary
#7151E4
secondary
#D8E4AC
accent
#D510AA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7151E4

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

Preview Lab → · Contrast checker → · Palette generator →

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