#7151BA#7151BA

#7151BA is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.1% C 0.159 H 294.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7151BA
RGBrgb(113, 81, 186)
HSLhsl(258, 43%, 52%)
HSVhsv(258, 56%, 73%)
CMYKcmyk(39.2%, 56.5%, 0%, 27.1%)
CIE-LABlab(42.67, 37.45, -51.01)
CIE-LCHlch(42.67, 63.29, 306.29°)
OKLaboklab(52.15% 0.0653 -0.1449)
OKLCHoklch(52.15% 0.159 294.3)
XYZxyz(18.6131, 12.9403, 47.9619)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151BA #9ABA51
analogous
#5165BA #7151BA #A651BA
triadic
#7151BA #BA7151 #51BA71
tetradic
#7151BA #BA5165 #9ABA51 #51BAA6
square
#7151BA #BA5165 #9ABA51 #51BAA6
split-complementary
#7151BA #BAA651 #65BA51
monochromatic
#3C2968 #563A93 #7151BA #957DCB #B9A9DD

Accessibility & contrast

On white

5.85
#7151BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7151BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151BA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151BA#FFFFFF#000000##FFFFFF
##7151BA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B66BE
Deuteranopia (green-blind)
#2663B8
Tritanopia (blue-blind)
#5F677E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7151ba;
/* rgb */ color: rgb(113, 81, 186);
/* oklch */ color: oklch(52.1% 0.159 294.3);
Tailwind
colors: {
  custom: {
    50: '#9e83cf',
    500: '#7151ba',
    950: '#000000',
  },
}
SCSS
$custom: #7151ba;
$custom-light: #9e83cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7151ba",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 258.286,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52147,
    "c": 0.15896,
    "h": 294.3
  },
  "luminance": 0.12941
}

Semantic roles & 50–950 ramp

primary
#7151BA
secondary
#BCCA9D
accent
#D355AD
background
#FAF8FC
surface
#F3EFF9
border
#CDCAD2
text
#0F0A14
muted
#7F7C82

Preview Lab

Preview with #7151BA

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

Preview Lab → · Contrast checker → · Palette generator →

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