#7151D2#7151D2

#7151D2 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.9% C 0.189 H 290.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7151D2
RGBrgb(113, 81, 210)
HSLhsl(255, 59%, 57%)
HSVhsv(255, 61%, 82%)
CMYKcmyk(46.2%, 61.4%, 0%, 17.6%)
CIE-LABlab(44.30, 44.17, -62.29)
CIE-LCHlch(44.30, 76.36, 305.34°)
OKLaboklab(53.86% 0.0647 -0.1781)
OKLCHoklch(53.86% 0.189 290)
XYZxyz(21.3820, 14.0479, 62.5452)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151D2 #B2D251
analogous
#5172D2 #7151D2 #B251D2
triadic
#7151D2 #D27151 #51D271
tetradic
#7151D2 #D25172 #B2D251 #51D2B2
square
#7151D2 #D25172 #B2D251 #51D2B2
split-complementary
#7151D2 #D2B251 #72D251
monochromatic
#3B2386 #512FB7 #7151D2 #9982DF #C0B2EB

Accessibility & contrast

On white

5.51
#7151D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#7151D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151D2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151D2#FFFFFF#000000##FFFFFF
##7151D21.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#536F8A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7151d2;
/* rgb */ color: rgb(113, 81, 210);
/* oklch */ color: oklch(53.9% 0.189 290.0);
Tailwind
colors: {
  custom: {
    50: '#a183e1',
    500: '#7151d2',
    950: '#000000',
  },
}
SCSS
$custom: #7151d2;
$custom-light: #a183e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7151d2",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 254.884,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.53859,
    "c": 0.18944,
    "h": 290
  },
  "luminance": 0.14049
}

Semantic roles & 50–950 ramp

primary
#7151D2
secondary
#CDDAA5
accent
#E246BB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7151D2

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

Preview Lab → · Contrast checker → · Palette generator →

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