#7151D7#7151D7

#7151D7 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.196 H 289.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7151D7
RGBrgb(113, 81, 215)
HSLhsl(254, 63%, 58%)
HSVhsv(254, 62%, 84%)
CMYKcmyk(47.4%, 62.3%, 0%, 15.7%)
CIE-LABlab(44.66, 45.59, -64.57)
CIE-LCHlch(44.66, 79.04, 305.23°)
OKLaboklab(54.23% 0.0643 -0.1848)
OKLCHoklch(54.23% 0.196 289.2)
XYZxyz(22.0147, 14.3010, 65.8772)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151D7 #B7D751
analogous
#5174D7 #7151D7 #B451D7
triadic
#7151D7 #D77151 #51D771
tetradic
#7151D7 #D75174 #B7D751 #51D7B4
square
#7151D7 #D75174 #B7D751 #51D7B4
split-complementary
#7151D7 #D7B451 #74D751
monochromatic
#3A208D #4F2CBF #7151D7 #9A83E2 #C2B5EE

Accessibility & contrast

On white

5.44
#7151D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7151D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151D7
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151D7#FFFFFF#000000##FFFFFF
##7151D71.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#0066D4
Tritanopia (blue-blind)
#50718C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7151d7;
/* rgb */ color: rgb(113, 81, 215);
/* oklch */ color: oklch(54.2% 0.196 289.2);
Tailwind
colors: {
  custom: {
    50: '#a183e4',
    500: '#7151d7',
    950: '#000000',
  },
}
SCSS
$custom: #7151d7;
$custom-light: #a183e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7151d7",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 254.328,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.54234,
    "c": 0.19563,
    "h": 289.2
  },
  "luminance": 0.14302
}

Semantic roles & 50–950 ramp

primary
#7151D7
secondary
#D0DDA7
accent
#E642BF
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7151D7

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

Preview Lab → · Contrast checker → · Palette generator →

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