#7151D5#7151D5

#7151D5 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.1% C 0.193 H 289.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7151D5
RGBrgb(113, 81, 213)
HSLhsl(255, 61%, 58%)
HSVhsv(255, 62%, 84%)
CMYKcmyk(46.9%, 62%, 0%, 16.5%)
CIE-LABlab(44.52, 45.02, -63.66)
CIE-LCHlch(44.52, 77.97, 305.27°)
OKLaboklab(54.08% 0.0645 -0.1821)
OKLCHoklch(54.08% 0.193 289.5)
XYZxyz(21.7593, 14.1988, 64.5320)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151D5 #B5D551
analogous
#5173D5 #7151D5 #B351D5
triadic
#7151D5 #D57151 #51D571
tetradic
#7151D5 #D55173 #B5D551 #51D5B3
square
#7151D5 #D55173 #B5D551 #51D5B3
split-complementary
#7151D5 #D5B351 #73D551
monochromatic
#3B218A #502DBC #7151D5 #9982E1 #C1B4ED

Accessibility & contrast

On white

5.47
#7151D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7151D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151D5
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151D5#FFFFFF#000000##FFFFFF
##7151D51.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#0066D2
Tritanopia (blue-blind)
#51708B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7151d5;
/* rgb */ color: rgb(113, 81, 213);
/* oklch */ color: oklch(54.1% 0.193 289.5);
Tailwind
colors: {
  custom: {
    50: '#a183e3',
    500: '#7151d5',
    950: '#000000',
  },
}
SCSS
$custom: #7151d5;
$custom-light: #a183e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7151d5",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 254.545,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54083,
    "c": 0.19316,
    "h": 289.5
  },
  "luminance": 0.142
}

Semantic roles & 50–950 ramp

primary
#7151D5
secondary
#CFDBA6
accent
#E444BD
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B15
muted
#7F7C84

Preview Lab

Preview with #7151D5

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

Preview Lab → · Contrast checker → · Palette generator →

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