#7151BD#7151BD

#7151BD is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.4% C 0.163 H 293.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7151BD
RGBrgb(113, 81, 189)
HSLhsl(258, 45%, 53%)
HSVhsv(258, 57%, 74%)
CMYKcmyk(40.2%, 57.1%, 0%, 25.9%)
CIE-LABlab(42.87, 38.28, -52.45)
CIE-LCHlch(42.87, 64.94, 306.12°)
OKLaboklab(52.35% 0.0654 -0.1491)
OKLCHoklch(52.35% 0.163 293.7)
XYZxyz(18.9353, 13.0692, 49.6592)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151BD #9DBD51
analogous
#5167BD #7151BD #A751BD
triadic
#7151BD #BD7151 #51BD71
tetradic
#7151BD #BD5167 #9DBD51 #51BDA7
square
#7151BD #BD5167 #9DBD51 #51BDA7
split-complementary
#7151BD #BDA751 #67BD51
monochromatic
#3C296B #553997 #7151BD #957DCE #B9AADF

Accessibility & contrast

On white

5.81
#7151BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7151BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151BD
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151BD#FFFFFF#000000##FFFFFF
##7151BD1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1566C1
Deuteranopia (green-blind)
#2163BB
Tritanopia (blue-blind)
#5D687F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7151bd;
/* rgb */ color: rgb(113, 81, 189);
/* oklch */ color: oklch(52.4% 0.163 293.7);
Tailwind
colors: {
  custom: {
    50: '#9e83d1',
    500: '#7151bd',
    950: '#000000',
  },
}
SCSS
$custom: #7151bd;
$custom-light: #9e83d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7151bd",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 257.778,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52352,
    "c": 0.16283,
    "h": 293.7
  },
  "luminance": 0.1307
}

Semantic roles & 50–950 ramp

primary
#7151BD
secondary
#BECC9E
accent
#D553AE
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7151BD

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

Preview Lab → · Contrast checker → · Palette generator →

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