#7151C3#7151C3

#7151C3 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.8% C 0.171 H 292.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7151C3
RGBrgb(113, 81, 195)
HSLhsl(257, 49%, 54%)
HSVhsv(257, 58%, 76%)
CMYKcmyk(42.1%, 58.5%, 0%, 23.5%)
CIE-LABlab(43.26, 39.95, -55.31)
CIE-LCHlch(43.26, 68.23, 305.84°)
OKLaboklab(52.77% 0.0653 -0.1575)
OKLCHoklch(52.77% 0.171 292.5)
XYZxyz(19.6001, 13.3351, 53.1604)
Luminance0.1334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151C3 #A3C351
analogous
#516AC3 #7151C3 #AA51C3
triadic
#7151C3 #C37151 #51C371
tetradic
#7151C3 #C3516A #A3C351 #51C3AA
square
#7151C3 #C3516A #A3C351 #51C3AA
split-complementary
#7151C3 #C3AA51 #6AC351
monochromatic
#3C2772 #5437A0 #7151C3 #967FD3 #BBACE2

Accessibility & contrast

On white

5.73
#7151C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#7151C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151C3
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151C3#FFFFFF#000000##FFFFFF
##7151C31.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C7
Deuteranopia (green-blind)
#1464C1
Tritanopia (blue-blind)
#5B6A82
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7151c3;
/* rgb */ color: rgb(113, 81, 195);
/* oklch */ color: oklch(52.8% 0.171 292.5);
Tailwind
colors: {
  custom: {
    50: '#9f83d6',
    500: '#7151c3',
    950: '#000000',
  },
}
SCSS
$custom: #7151c3;
$custom-light: #9f83d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7151c3",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 195
  },
  "hsl": {
    "h": 256.842,
    "s": 48.718,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5277,
    "c": 0.17053,
    "h": 292.5
  },
  "luminance": 0.13336
}

Semantic roles & 50–950 ramp

primary
#7151C3
secondary
#C3D0A0
accent
#D850B2
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7151C3

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

Preview Lab → · Contrast checker → · Palette generator →

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