#7151A2#7151A2

#7151A2 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.6% C 0.127 H 300.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7151A2
RGBrgb(113, 81, 162)
HSLhsl(264, 33%, 48%)
HSVhsv(264, 50%, 64%)
CMYKcmyk(30.2%, 50%, 0%, 36.5%)
CIE-LABlab(41.22, 30.99, -39.17)
CIE-LCHlch(41.22, 49.94, 308.35°)
OKLaboklab(50.6% 0.0639 -0.1102)
OKLCHoklch(50.6% 0.127 300.1)
XYZxyz(16.2725, 12.0041, 35.6351)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151A2 #82A251
analogous
#5159A2 #7151A2 #9951A2
triadic
#7151A2 #A27151 #51A271
tetradic
#7151A2 #A25159 #82A251 #51A299
square
#7151A2 #A25159 #82A251 #51A299
split-complementary
#7151A2 #A29951 #59A251
monochromatic
#382850 #553D79 #7151A2 #9176BA #B29FCF

Accessibility & contrast

On white

6.18
#7151A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7151A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151A2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151A2#FFFFFF#000000##FFFFFF
##7151A21.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#3F61A0
Tritanopia (blue-blind)
#676072
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7151a2;
/* rgb */ color: rgb(113, 81, 162);
/* oklch */ color: oklch(50.6% 0.127 300.1);
Tailwind
colors: {
  custom: {
    50: '#9c82be',
    500: '#7151a2',
    950: '#000000',
  },
}
SCSS
$custom: #7151a2;
$custom-light: #9c82be;
$custom-dark: #000000;
JSON
{
  "hex": "#7151a2",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 263.704,
    "s": 33.333,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50604,
    "c": 0.12739,
    "h": 300.1
  },
  "luminance": 0.12004
}

Semantic roles & 50–950 ramp

primary
#7151A2
secondary
#ACBC93
accent
#C95E9F
background
#F9F8FB
surface
#F2EFF7
border
#CCCAD0
text
#0E0A12
muted
#7E7C81

Preview Lab

Preview with #7151A2

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

Preview Lab → · Contrast checker → · Palette generator →

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