#7151EB#7151EB

#7151EB is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.8% C 0.220 H 286.4°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7151EB
RGBrgb(113, 81, 235)
HSLhsl(252, 79%, 62%)
HSVhsv(252, 66%, 92%)
CMYKcmyk(51.9%, 65.5%, 0%, 7.8%)
CIE-LABlab(46.17, 51.30, -73.47)
CIE-LCHlch(46.17, 89.61, 304.92°)
OKLaboklab(55.8% 0.0622 -0.2109)
OKLCHoklch(55.8% 0.22 286.4)
XYZxyz(24.7434, 15.3925, 80.2484)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151EB #CBEB51
analogous
#517EEB #7151EB #BE51EB
triadic
#7151EB #EB7151 #51EB71
tetradic
#7151EB #EB517E #CBEB51 #51EBBE
square
#7151EB #EB517E #CBEB51 #51EBBE
split-complementary
#7151EB #EBBE51 #7EEB51
monochromatic
#3414AE #441AE5 #7151EB #9E88F1 #CBBFF8

Accessibility & contrast

On white

5.15
#7151EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7151EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151EB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151EB#FFFFFF#000000##FFFFFF
##7151EB1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0069E8
Tritanopia (blue-blind)
#417897
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7151eb;
/* rgb */ color: rgb(113, 81, 235);
/* oklch */ color: oklch(55.8% 0.220 286.4);
Tailwind
colors: {
  custom: {
    50: '#a484f2',
    500: '#7151eb',
    950: '#000000',
  },
}
SCSS
$custom: #7151eb;
$custom-light: #a484f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7151eb",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 252.468,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.55796,
    "c": 0.21993,
    "h": 286.4
  },
  "luminance": 0.15394
}

Semantic roles & 50–950 ramp

primary
#7151EB
secondary
#DCE8B0
accent
#DC0AB0
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7151EB

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

Preview Lab → · Contrast checker → · Palette generator →

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