#7151D9#7151D9

#7151D9 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.4% C 0.198 H 288.9°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7151D9
RGBrgb(113, 81, 217)
HSLhsl(254, 64%, 58%)
HSVhsv(254, 63%, 85%)
CMYKcmyk(47.9%, 62.7%, 0%, 14.9%)
CIE-LABlab(44.81, 46.16, -65.47)
CIE-LCHlch(44.81, 80.11, 305.18°)
OKLaboklab(54.39% 0.0642 -0.1874)
OKLCHoklch(54.39% 0.198 288.9)
XYZxyz(22.2733, 14.4044, 67.2389)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151D9 #B9D951
analogous
#5175D9 #7151D9 #B551D9
triadic
#7151D9 #D97151 #51D971
tetradic
#7151D9 #D95175 #B9D951 #51D9B5
square
#7151D9 #D95175 #B9D951 #51D9B5
split-complementary
#7151D9 #D9B551 #75D951
monochromatic
#3A1F90 #4E2AC2 #7151D9 #9A83E4 #C3B5EF

Accessibility & contrast

On white

5.41
#7151D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7151D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151D9
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151D9#FFFFFF#000000##FFFFFF
##7151D91.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#0067D6
Tritanopia (blue-blind)
#4E718E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7151d9;
/* rgb */ color: rgb(113, 81, 217);
/* oklch */ color: oklch(54.4% 0.198 288.9);
Tailwind
colors: {
  custom: {
    50: '#a283e6',
    500: '#7151d9',
    950: '#000000',
  },
}
SCSS
$custom: #7151d9;
$custom-light: #a283e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7151d9",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 254.118,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54386,
    "c": 0.1981,
    "h": 288.9
  },
  "luminance": 0.14405
}

Semantic roles & 50–950 ramp

primary
#7151D9
secondary
#D1DEA8
accent
#E741C0
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7151D9

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

Preview Lab → · Contrast checker → · Palette generator →

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