#7151FE#7151FE

#7151FE is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.4% C 0.242 H 284.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7151FE
RGBrgb(113, 81, 254)
HSLhsl(251, 99%, 66%)
HSVhsv(251, 68%, 100%)
CMYKcmyk(55.5%, 68.1%, 0%, 0.4%)
CIE-LABlab(47.69, 56.73, -81.63)
CIE-LCHlch(47.69, 99.41, 304.80°)
OKLaboklab(57.36% 0.0595 -0.2349)
OKLCHoklch(57.36% 0.242 284.2)
XYZxyz(27.6364, 16.5497, 95.4848)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151FE #DEFE51
analogous
#5187FE #7151FE #C751FE
triadic
#7151FE #FE7151 #51FE71
tetradic
#7151FE #FE5187 #DEFE51 #51FEC7
square
#7151FE #FE5187 #DEFE51 #51FEC7
split-complementary
#7151FE #FEC751 #87FE51
monochromatic
#2801D3 #3F14FE #7151FE #A38EFE #D4CBFF

Accessibility & contrast

On white

4.87
#7151FE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7151FE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151FE
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151FE#FFFFFF#000000##FFFFFF
##7151FE1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#006CFB
Tritanopia (blue-blind)
#2B7EA2
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7151fe;
/* rgb */ color: rgb(113, 81, 254);
/* oklch */ color: oklch(57.4% 0.242 284.2);
Tailwind
colors: {
  custom: {
    50: '#a784ff',
    500: '#7151fe',
    950: '#000000',
  },
}
SCSS
$custom: #7151fe;
$custom-light: #a784ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7151fe",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 254
  },
  "hsl": {
    "h": 251.098,
    "s": 98.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.57358,
    "c": 0.24228,
    "h": 284.2
  },
  "luminance": 0.16551
}

Semantic roles & 50–950 ramp

primary
#7151FE
secondary
#E8F2B9
accent
#E600BB
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B18
muted
#807C86

Preview Lab

Preview with #7151FE

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

Preview Lab → · Contrast checker → · Palette generator →

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