#7151E3#7151E3

#7151E3 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.2% C 0.210 H 287.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7151E3
RGBrgb(113, 81, 227)
HSLhsl(253, 72%, 60%)
HSVhsv(253, 64%, 89%)
CMYKcmyk(50.2%, 64.3%, 0%, 11%)
CIE-LABlab(45.55, 49.01, -69.95)
CIE-LCHlch(45.55, 85.41, 305.02°)
OKLaboklab(55.16% 0.0632 -0.2006)
OKLCHoklch(55.16% 0.21 287.5)
XYZxyz(23.6135, 14.9405, 74.2977)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151E3 #C3E351
analogous
#517AE3 #7151E3 #BA51E3
triadic
#7151E3 #E37151 #51E371
tetradic
#7151E3 #E3517A #C3E351 #51E3BA
square
#7151E3 #E3517A #C3E351 #51E3BA
split-complementary
#7151E3 #E3BA51 #7AE351
monochromatic
#371AA0 #4922D5 #7151E3 #9C86EB #C7BAF4

Accessibility & contrast

On white

5.27
#7151E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7151E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151E3
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151E3#FFFFFF#000000##FFFFFF
##7151E31.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE8
Deuteranopia (green-blind)
#0068E0
Tritanopia (blue-blind)
#477593
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7151e3;
/* rgb */ color: rgb(113, 81, 227);
/* oklch */ color: oklch(55.2% 0.210 287.5);
Tailwind
colors: {
  custom: {
    50: '#a384ed',
    500: '#7151e3',
    950: '#000000',
  },
}
SCSS
$custom: #7151e3;
$custom-light: #a384ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7151e3",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 227
  },
  "hsl": {
    "h": 253.151,
    "s": 72.277,
    "l": 60.392
  },
  "oklch": {
    "l": 0.5516,
    "c": 0.2103,
    "h": 287.5
  },
  "luminance": 0.14942
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7151E3

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

Preview Lab → · Contrast checker → · Palette generator →

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