#7151F2#7151F2

#7151F2 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.4% C 0.228 H 285.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7151F2
RGBrgb(113, 81, 242)
HSLhsl(252, 86%, 63%)
HSVhsv(252, 67%, 95%)
CMYKcmyk(53.3%, 66.5%, 0%, 5.1%)
CIE-LABlab(46.72, 53.30, -76.51)
CIE-LCHlch(46.72, 93.25, 304.86°)
OKLaboklab(56.36% 0.0613 -0.2199)
OKLCHoklch(56.36% 0.228 285.6)
XYZxyz(25.7747, 15.8050, 85.6797)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151F2 #D2F251
analogous
#5182F2 #7151F2 #C151F2
triadic
#7151F2 #F27151 #51F271
tetradic
#7151F2 #F25182 #D2F251 #51F2C1
square
#7151F2 #F25182 #D2F251 #51F2C1
split-complementary
#7151F2 #F2C151 #82F251
monochromatic
#300EBB #4318EE #7151F2 #9F8AF6 #CEC3FB

Accessibility & contrast

On white

5.05
#7151F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7151F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151F2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151F2#FFFFFF#000000##FFFFFF
##7151F21.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#3A7A9B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7151f2;
/* rgb */ color: rgb(113, 81, 242);
/* oklch */ color: oklch(56.4% 0.228 285.6);
Tailwind
colors: {
  custom: {
    50: '#a584f7',
    500: '#7151f2',
    950: '#000000',
  },
}
SCSS
$custom: #7151f2;
$custom-light: #a584f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7151f2",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 251.925,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56363,
    "c": 0.22825,
    "h": 285.6
  },
  "luminance": 0.15806
}

Semantic roles & 50–950 ramp

primary
#7151F2
secondary
#E1ECB3
accent
#E303B6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7151F2

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

Preview Lab → · Contrast checker → · Palette generator →

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