#7151D1#7151D1

#7151D1 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.8% C 0.188 H 290.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7151D1
RGBrgb(113, 81, 209)
HSLhsl(255, 58%, 57%)
HSVhsv(255, 61%, 82%)
CMYKcmyk(45.9%, 61.2%, 0%, 18%)
CIE-LABlab(44.23, 43.89, -61.83)
CIE-LCHlch(44.23, 75.82, 305.37°)
OKLaboklab(53.78% 0.0647 -0.1767)
OKLCHoklch(53.78% 0.188 290.1)
XYZxyz(21.2579, 13.9982, 61.8911)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151D1 #B1D151
analogous
#5171D1 #7151D1 #B151D1
triadic
#7151D1 #D17151 #51D171
tetradic
#7151D1 #D15171 #B1D151 #51D1B1
square
#7151D1 #D15171 #B1D151 #51D1B1
split-complementary
#7151D1 #D1B151 #71D151
monochromatic
#3B2385 #5130B5 #7151D1 #9981DE #C0B2EB

Accessibility & contrast

On white

5.53
#7151D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7151D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151D1
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151D1#FFFFFF#000000##FFFFFF
##7151D11.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#0066CE
Tritanopia (blue-blind)
#536F89
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7151d1;
/* rgb */ color: rgb(113, 81, 209);
/* oklch */ color: oklch(53.8% 0.188 290.1);
Tailwind
colors: {
  custom: {
    50: '#a183e0',
    500: '#7151d1',
    950: '#000000',
  },
}
SCSS
$custom: #7151d1;
$custom-light: #a183e0;
$custom-dark: #000000;
JSON
{
  "hex": "#7151d1",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 209
  },
  "hsl": {
    "h": 255,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.53784,
    "c": 0.18819,
    "h": 290.1
  },
  "luminance": 0.13999
}

Semantic roles & 50–950 ramp

primary
#7151D1
secondary
#CCD9A5
accent
#E146BB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7151D1

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

Preview Lab → · Contrast checker → · Palette generator →

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