#7151E8#7151E8

#7151E8 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.6% C 0.216 H 286.8°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7151E8
RGBrgb(113, 81, 232)
HSLhsl(253, 77%, 61%)
HSVhsv(253, 65%, 91%)
CMYKcmyk(51.3%, 65.1%, 0%, 9%)
CIE-LABlab(45.93, 50.44, -72.16)
CIE-LCHlch(45.93, 88.04, 304.95°)
OKLaboklab(55.56% 0.0626 -0.2071)
OKLCHoklch(55.56% 0.216 286.8)
XYZxyz(24.3137, 15.2206, 77.9850)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151E8 #C8E851
analogous
#517DE8 #7151E8 #BD51E8
triadic
#7151E8 #E87151 #51E871
tetradic
#7151E8 #E8517D #C8E851 #51E8BD
square
#7151E8 #E8517D #C8E851 #51E8BD
split-complementary
#7151E8 #E8BD51 #7DE851
monochromatic
#3516A8 #461DDE #7151E8 #9D87EF #C9BDF6

Accessibility & contrast

On white

5.19
#7151E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7151E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151E8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151E8#FFFFFF#000000##FFFFFF
##7151E81.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071ED
Deuteranopia (green-blind)
#0069E5
Tritanopia (blue-blind)
#437696
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7151e8;
/* rgb */ color: rgb(113, 81, 232);
/* oklch */ color: oklch(55.6% 0.216 286.8);
Tailwind
colors: {
  custom: {
    50: '#a384f0',
    500: '#7151e8',
    950: '#000000',
  },
}
SCSS
$custom: #7151e8;
$custom-light: #a384f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7151e8",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 252.715,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.55556,
    "c": 0.21634,
    "h": 286.8
  },
  "luminance": 0.15222
}

Semantic roles & 50–950 ramp

primary
#7151E8
secondary
#DBE7AE
accent
#D90DAE
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7151E8

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

Preview Lab → · Contrast checker → · Palette generator →

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