#7151ED#7151ED

#7151ED is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.0% C 0.222 H 286.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7151ED
RGBrgb(113, 81, 237)
HSLhsl(252, 81%, 62%)
HSVhsv(252, 66%, 93%)
CMYKcmyk(52.3%, 65.8%, 0%, 7.1%)
CIE-LABlab(46.32, 51.87, -74.34)
CIE-LCHlch(46.32, 90.65, 304.90°)
OKLaboklab(55.96% 0.062 -0.2135)
OKLCHoklch(55.96% 0.222 286.2)
XYZxyz(25.0340, 15.5087, 81.7787)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151ED #CDED51
analogous
#517FED #7151ED #BF51ED
triadic
#7151ED #ED7151 #51ED71
tetradic
#7151ED #ED517F #CDED51 #51EDBF
square
#7151ED #ED517F #CDED51 #51EDBF
split-complementary
#7151ED #EDBF51 #7FED51
monochromatic
#3312B1 #441AE7 #7151ED #9E88F3 #CCC0F8

Accessibility & contrast

On white

5.12
#7151ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7151ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151ED
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151ED#FFFFFF#000000##FFFFFF
##7151ED1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F2
Deuteranopia (green-blind)
#0069EA
Tritanopia (blue-blind)
#3F7898
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7151ed;
/* rgb */ color: rgb(113, 81, 237);
/* oklch */ color: oklch(56.0% 0.222 286.2);
Tailwind
colors: {
  custom: {
    50: '#a484f4',
    500: '#7151ed',
    950: '#000000',
  },
}
SCSS
$custom: #7151ed;
$custom-light: #a484f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7151ed",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 237
  },
  "hsl": {
    "h": 252.308,
    "s": 81.25,
    "l": 62.353
  },
  "oklch": {
    "l": 0.55957,
    "c": 0.22231,
    "h": 286.2
  },
  "luminance": 0.1551
}

Semantic roles & 50–950 ramp

primary
#7151ED
secondary
#DEE9B0
accent
#DE08B2
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7151ED

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

Preview Lab → · Contrast checker → · Palette generator →

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