#7151BE#7151BE

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

Color values

HEX#7151BE
RGBrgb(113, 81, 190)
HSLhsl(258, 46%, 53%)
HSVhsv(258, 57%, 75%)
CMYKcmyk(40.5%, 57.4%, 0%, 25.5%)
CIE-LABlab(42.93, 38.56, -52.93)
CIE-LCHlch(42.93, 65.49, 306.07°)
OKLaboklab(52.42% 0.0654 -0.1505)
OKLCHoklch(52.42% 0.164 293.5)
XYZxyz(19.0443, 13.1128, 50.2328)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151BE #9EBE51
analogous
#5167BE #7151BE #A851BE
triadic
#7151BE #BE7151 #51BE71
tetradic
#7151BE #BE5167 #9EBE51 #51BEA8
square
#7151BE #BE5167 #9EBE51 #51BEA8
split-complementary
#7151BE #BEA851 #67BE51
monochromatic
#3C286C #553999 #7151BE #957ECF #BAAADF

Accessibility & contrast

On white

5.80
#7151BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7151BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151BE
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151BE#FFFFFF#000000##FFFFFF
##7151BE1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1267C2
Deuteranopia (green-blind)
#2063BC
Tritanopia (blue-blind)
#5D6880
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7151be;
/* rgb */ color: rgb(113, 81, 190);
/* oklch */ color: oklch(52.4% 0.164 293.5);
Tailwind
colors: {
  custom: {
    50: '#9f83d2',
    500: '#7151be',
    950: '#000000',
  },
}
SCSS
$custom: #7151be;
$custom-light: #9f83d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7151be",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 257.615,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52421,
    "c": 0.16412,
    "h": 293.5
  },
  "luminance": 0.13113
}

Semantic roles & 50–950 ramp

primary
#7151BE
secondary
#BFCD9E
accent
#D553AF
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7151BE

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

Preview Lab → · Contrast checker → · Palette generator →

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