#7151B8#7151B8

#7151B8 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.0% C 0.156 H 294.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7151B8
RGBrgb(113, 81, 184)
HSLhsl(259, 42%, 52%)
HSVhsv(259, 56%, 72%)
CMYKcmyk(38.6%, 56%, 0%, 27.8%)
CIE-LABlab(42.55, 36.90, -50.05)
CIE-LCHlch(42.55, 62.18, 306.40°)
OKLaboklab(52.01% 0.0653 -0.1421)
OKLCHoklch(52.01% 0.156 294.7)
XYZxyz(18.4019, 12.8559, 46.8500)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151B8 #98B851
analogous
#5165B8 #7151B8 #A551B8
triadic
#7151B8 #B87151 #51B871
tetradic
#7151B8 #B85165 #98B851 #51B8A5
square
#7151B8 #B85165 #98B851 #51B8A5
split-complementary
#7151B8 #B8A551 #65B851
monochromatic
#3C2965 #563B91 #7151B8 #947CCA #B8A8DB

Accessibility & contrast

On white

5.88
#7151B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7151B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151B8
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151B8#FFFFFF#000000##FFFFFF
##7151B81.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#2963B6
Tritanopia (blue-blind)
#5F677D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7151b8;
/* rgb */ color: rgb(113, 81, 184);
/* oklch */ color: oklch(52.0% 0.156 294.7);
Tailwind
colors: {
  custom: {
    50: '#9e83ce',
    500: '#7151b8',
    950: '#000000',
  },
}
SCSS
$custom: #7151b8;
$custom-light: #9e83ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7151b8",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 184
  },
  "hsl": {
    "h": 258.641,
    "s": 42.041,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52012,
    "c": 0.15637,
    "h": 294.7
  },
  "luminance": 0.12856
}

Semantic roles & 50–950 ramp

primary
#7151B8
secondary
#BBC99C
accent
#D256AB
background
#FAF8FC
surface
#F3EFF9
border
#CDCAD2
text
#0F0A14
muted
#7F7C82

Preview Lab

Preview with #7151B8

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

Preview Lab → · Contrast checker → · Palette generator →

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