#7151A5#7151A5

#7151A5 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 50.8% C 0.131 H 299.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7151A5
RGBrgb(113, 81, 165)
HSLhsl(263, 34%, 48%)
HSVhsv(263, 51%, 65%)
CMYKcmyk(31.5%, 50.9%, 0%, 35.3%)
CIE-LABlab(41.39, 31.78, -40.68)
CIE-LCHlch(41.39, 51.62, 307.99°)
OKLaboklab(50.79% 0.0642 -0.1146)
OKLCHoklch(50.79% 0.131 299.3)
XYZxyz(16.5424, 12.1121, 37.0564)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151A5 #85A551
analogous
#515BA5 #7151A5 #9B51A5
triadic
#7151A5 #A57151 #51A571
tetradic
#7151A5 #A5515B #85A551 #51A59B
square
#7151A5 #A5515B #85A551 #51A59B
split-complementary
#7151A5 #A59B51 #5BA551
monochromatic
#392953 #553D7C #7151A5 #9177BC #B2A0D0

Accessibility & contrast

On white

6.14
#7151A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7151A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151A5
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151A5#FFFFFF#000000##FFFFFF
##7151A51.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A8
Deuteranopia (green-blind)
#3C61A3
Tritanopia (blue-blind)
#666173
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7151a5;
/* rgb */ color: rgb(113, 81, 165);
/* oklch */ color: oklch(50.8% 0.131 299.3);
Tailwind
colors: {
  custom: {
    50: '#9c82c0',
    500: '#7151a5',
    950: '#000000',
  },
}
SCSS
$custom: #7151a5;
$custom-light: #9c82c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7151a5",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 165
  },
  "hsl": {
    "h": 262.857,
    "s": 34.146,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50787,
    "c": 0.13139,
    "h": 299.3
  },
  "luminance": 0.12112
}

Semantic roles & 50–950 ramp

primary
#7151A5
secondary
#AEBD94
accent
#CA5EA1
background
#F9F8FB
surface
#F2EFF7
border
#CCCAD0
text
#0E0A12
muted
#7E7C81

Preview Lab

Preview with #7151A5

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

Preview Lab → · Contrast checker → · Palette generator →

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