#7151C2#7151C2

#7151C2 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.7% C 0.169 H 292.7°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7151C2
RGBrgb(113, 81, 194)
HSLhsl(257, 48%, 54%)
HSVhsv(257, 58%, 76%)
CMYKcmyk(41.8%, 58.2%, 0%, 23.9%)
CIE-LABlab(43.20, 39.67, -54.83)
CIE-LCHlch(43.20, 67.68, 305.89°)
OKLaboklab(52.7% 0.0653 -0.1561)
OKLCHoklch(52.7% 0.169 292.7)
XYZxyz(19.4874, 13.2901, 52.5670)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151C2 #A2C251
analogous
#516AC2 #7151C2 #AA51C2
triadic
#7151C2 #C27151 #51C271
tetradic
#7151C2 #C2516A #A2C251 #51C2AA
square
#7151C2 #C2516A #A2C251 #51C2AA
split-complementary
#7151C2 #C2AA51 #6AC251
monochromatic
#3C2871 #55379E #7151C2 #967ED2 #BBACE2

Accessibility & contrast

On white

5.74
#7151C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#7151C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151C2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151C2#FFFFFF#000000##FFFFFF
##7151C21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0468C6
Deuteranopia (green-blind)
#1764C0
Tritanopia (blue-blind)
#5B6A82
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7151c2;
/* rgb */ color: rgb(113, 81, 194);
/* oklch */ color: oklch(52.7% 0.169 292.7);
Tailwind
colors: {
  custom: {
    50: '#9f83d5',
    500: '#7151c2',
    950: '#000000',
  },
}
SCSS
$custom: #7151c2;
$custom-light: #9f83d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7151c2",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 256.991,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.527,
    "c": 0.16925,
    "h": 292.7
  },
  "luminance": 0.13291
}

Semantic roles & 50–950 ramp

primary
#7151C2
secondary
#C2D09F
accent
#D850B1
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7151C2

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

Preview Lab → · Contrast checker → · Palette generator →

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