#7151EC#7151EC

#7151EC is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.9% C 0.221 H 286.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7151EC
RGBrgb(113, 81, 236)
HSLhsl(252, 80%, 62%)
HSVhsv(252, 66%, 93%)
CMYKcmyk(52.1%, 65.7%, 0%, 7.5%)
CIE-LABlab(46.24, 51.58, -73.91)
CIE-LCHlch(46.24, 90.13, 304.91°)
OKLaboklab(55.88% 0.0621 -0.2122)
OKLCHoklch(55.88% 0.221 286.3)
XYZxyz(24.8883, 15.4504, 81.0114)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151EC #CCEC51
analogous
#517FEC #7151EC #BF51EC
triadic
#7151EC #EC7151 #51EC71
tetradic
#7151EC #EC517F #CCEC51 #51ECBF
square
#7151EC #EC517F #CCEC51 #51ECBF
split-complementary
#7151EC #ECBF51 #7FEC51
monochromatic
#3313AF #441AE6 #7151EC #9E88F2 #CBBFF8

Accessibility & contrast

On white

5.13
#7151EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7151EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151EC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151EC#FFFFFF#000000##FFFFFF
##7151EC1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F1
Deuteranopia (green-blind)
#0069E9
Tritanopia (blue-blind)
#407898
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7151ec;
/* rgb */ color: rgb(113, 81, 236);
/* oklch */ color: oklch(55.9% 0.221 286.3);
Tailwind
colors: {
  custom: {
    50: '#a484f3',
    500: '#7151ec',
    950: '#000000',
  },
}
SCSS
$custom: #7151ec;
$custom-light: #a484f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7151ec",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 252.387,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.55876,
    "c": 0.22112,
    "h": 286.3
  },
  "luminance": 0.15452
}

Semantic roles & 50–950 ramp

primary
#7151EC
secondary
#DDE9B0
accent
#DD09B1
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7151EC

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

Preview Lab → · Contrast checker → · Palette generator →

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