#7151D6#7151D6

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

Color values

HEX#7151D6
RGBrgb(113, 81, 214)
HSLhsl(254, 62%, 58%)
HSVhsv(254, 62%, 84%)
CMYKcmyk(47.2%, 62.1%, 0%, 16.1%)
CIE-LABlab(44.59, 45.31, -64.11)
CIE-LCHlch(44.59, 78.51, 305.25°)
OKLaboklab(54.16% 0.0644 -0.1834)
OKLCHoklch(54.16% 0.194 289.3)
XYZxyz(21.8866, 14.2497, 65.2026)
Luminance0.1425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151D6 #B6D651
analogous
#5173D6 #7151D6 #B351D6
triadic
#7151D6 #D67151 #51D671
tetradic
#7151D6 #D65173 #B6D651 #51D6B3
square
#7151D6 #D65173 #B6D651 #51D6B3
split-complementary
#7151D6 #D6B351 #73D651
monochromatic
#3B218C #4F2DBD #7151D6 #9983E2 #C2B4ED

Accessibility & contrast

On white

5.45
#7151D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7151D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151D6
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151D6#FFFFFF#000000##FFFFFF
##7151D61.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#0066D3
Tritanopia (blue-blind)
#50708C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7151d6;
/* rgb */ color: rgb(113, 81, 214);
/* oklch */ color: oklch(54.2% 0.194 289.3);
Tailwind
colors: {
  custom: {
    50: '#a183e3',
    500: '#7151d6',
    950: '#000000',
  },
}
SCSS
$custom: #7151d6;
$custom-light: #a183e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7151d6",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 214
  },
  "hsl": {
    "h": 254.436,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54159,
    "c": 0.1944,
    "h": 289.3
  },
  "luminance": 0.14251
}

Semantic roles & 50–950 ramp

primary
#7151D6
secondary
#CFDCA7
accent
#E543BE
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7151D6

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

Preview Lab → · Contrast checker → · Palette generator →

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