#7151C8#7151C8

#7151C8 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.1% C 0.177 H 291.6°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#7151C8
RGBrgb(113, 81, 200)
HSLhsl(256, 52%, 55%)
HSVhsv(256, 60%, 78%)
CMYKcmyk(43.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(43.60, 41.35, -57.66)
CIE-LCHlch(43.60, 70.95, 305.65°)
OKLaboklab(53.13% 0.0652 -0.1644)
OKLCHoklch(53.13% 0.177 291.6)
XYZxyz(20.1749, 13.5651, 56.1877)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151C8 #A8C851
analogous
#516DC8 #7151C8 #AC51C8
triadic
#7151C8 #C87151 #51C871
tetradic
#7151C8 #C8516D #A8C851 #51C8AC
square
#7151C8 #C8516D #A8C851 #51C8AC
split-complementary
#7151C8 #C8AC51 #6DC851
monochromatic
#3C2679 #5435A7 #7151C8 #9780D7 #BDAEE5

Accessibility & contrast

On white

5.66
#7151C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#7151C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151C8
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151C8#FFFFFF#000000##FFFFFF
##7151C81.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#0065C5
Tritanopia (blue-blind)
#586C85
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7151c8;
/* rgb */ color: rgb(113, 81, 200);
/* oklch */ color: oklch(53.1% 0.177 291.6);
Tailwind
colors: {
  custom: {
    50: '#a083d9',
    500: '#7151c8',
    950: '#000000',
  },
}
SCSS
$custom: #7151c8;
$custom-light: #a083d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7151c8",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 256.134,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53126,
    "c": 0.17688,
    "h": 291.6
  },
  "luminance": 0.13566
}

Semantic roles & 50–950 ramp

primary
#7151C8
secondary
#C6D3A1
accent
#DB4CB5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7151C8

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

Preview Lab → · Contrast checker → · Palette generator →

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