#7151E5#7151E5

#7151E5 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.3% C 0.213 H 287.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7151E5
RGBrgb(113, 81, 229)
HSLhsl(253, 74%, 61%)
HSVhsv(253, 65%, 90%)
CMYKcmyk(50.7%, 64.6%, 0%, 10.2%)
CIE-LABlab(45.70, 49.58, -70.84)
CIE-LCHlch(45.70, 86.47, 304.99°)
OKLaboklab(55.32% 0.063 -0.2032)
OKLCHoklch(55.32% 0.213 287.2)
XYZxyz(23.8912, 15.0516, 75.7599)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151E5 #C5E551
analogous
#517BE5 #7151E5 #BB51E5
triadic
#7151E5 #E57151 #51E571
tetradic
#7151E5 #E5517B #C5E551 #51E5BB
square
#7151E5 #E5517B #C5E551 #51E5BB
split-complementary
#7151E5 #E5BB51 #7BE551
monochromatic
#3618A3 #4820D8 #7151E5 #9C86ED #C8BBF5

Accessibility & contrast

On white

5.24
#7151E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7151E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151E5
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151E5#FFFFFF#000000##FFFFFF
##7151E51.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EA
Deuteranopia (green-blind)
#0068E2
Tritanopia (blue-blind)
#467594
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7151e5;
/* rgb */ color: rgb(113, 81, 229);
/* oklch */ color: oklch(55.3% 0.213 287.2);
Tailwind
colors: {
  custom: {
    50: '#a384ee',
    500: '#7151e5',
    950: '#000000',
  },
}
SCSS
$custom: #7151e5;
$custom-light: #a384ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7151e5",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 252.973,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55318,
    "c": 0.21272,
    "h": 287.2
  },
  "luminance": 0.15053
}

Semantic roles & 50–950 ramp

primary
#7151E5
secondary
#D9E5AD
accent
#D60FAB
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7151E5

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

Preview Lab → · Contrast checker → · Palette generator →

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