#7151EF#7151EF

#7151EF is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.1% C 0.225 H 285.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7151EF
RGBrgb(113, 81, 239)
HSLhsl(252, 83%, 63%)
HSVhsv(252, 66%, 94%)
CMYKcmyk(52.7%, 66.1%, 0%, 6.3%)
CIE-LABlab(46.48, 52.44, -75.21)
CIE-LCHlch(46.48, 91.69, 304.89°)
OKLaboklab(56.12% 0.0617 -0.216)
OKLCHoklch(56.12% 0.225 285.9)
XYZxyz(25.3278, 15.6262, 83.3262)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151EF #CFEF51
analogous
#5180EF #7151EF #C051EF
triadic
#7151EF #EF7151 #51EF71
tetradic
#7151EF #EF5180 #CFEF51 #51EFC0
square
#7151EF #EF5180 #CFEF51 #51EFC0
split-complementary
#7151EF #EFC051 #80EF51
monochromatic
#3211B5 #4319EA #7151EF #9F89F4 #CCC1F9

Accessibility & contrast

On white

5.09
#7151EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7151EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151EF
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151EF#FFFFFF#000000##FFFFFF
##7151EF1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F4
Deuteranopia (green-blind)
#0069EC
Tritanopia (blue-blind)
#3D7999
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7151ef;
/* rgb */ color: rgb(113, 81, 239);
/* oklch */ color: oklch(56.1% 0.225 285.9);
Tailwind
colors: {
  custom: {
    50: '#a484f5',
    500: '#7151ef',
    950: '#000000',
  },
}
SCSS
$custom: #7151ef;
$custom-light: #a484f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7151ef",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 239
  },
  "hsl": {
    "h": 252.152,
    "s": 83.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.56119,
    "c": 0.22469,
    "h": 285.9
  },
  "luminance": 0.15628
}

Semantic roles & 50–950 ramp

primary
#7151EF
secondary
#DFEAB1
accent
#E006B3
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7151EF

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

Preview Lab → · Contrast checker → · Palette generator →

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