#7151F4#7151F4

#7151F4 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.5% C 0.231 H 285.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7151F4
RGBrgb(113, 81, 244)
HSLhsl(252, 88%, 64%)
HSVhsv(252, 67%, 96%)
CMYKcmyk(53.7%, 66.8%, 0%, 4.3%)
CIE-LABlab(46.88, 53.87, -77.37)
CIE-LCHlch(46.88, 94.28, 304.85°)
OKLaboklab(56.53% 0.061 -0.2224)
OKLCHoklch(56.53% 0.231 285.3)
XYZxyz(26.0767, 15.9258, 87.2703)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151F4 #D4F451
analogous
#5182F4 #7151F4 #C251F4
triadic
#7151F4 #F47151 #51F471
tetradic
#7151F4 #F45182 #D4F451 #51F4C2
square
#7151F4 #F45182 #D4F451 #51F4C2
split-complementary
#7151F4 #F4C251 #82F451
monochromatic
#2F0CBF #4217F0 #7151F4 #A08BF8 #CFC4FB

Accessibility & contrast

On white

5.02
#7151F4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7151F4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151F4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151F4#FFFFFF#000000##FFFFFF
##7151F41.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F9
Deuteranopia (green-blind)
#006AF1
Tritanopia (blue-blind)
#387B9C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7151f4;
/* rgb */ color: rgb(113, 81, 244);
/* oklch */ color: oklch(56.5% 0.231 285.3);
Tailwind
colors: {
  custom: {
    50: '#a584f9',
    500: '#7151f4',
    950: '#000000',
  },
}
SCSS
$custom: #7151f4;
$custom-light: #a584f9;
$custom-dark: #000000;
JSON
{
  "hex": "#7151f4",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 244
  },
  "hsl": {
    "h": 251.779,
    "s": 88.108,
    "l": 63.725
  },
  "oklch": {
    "l": 0.56527,
    "c": 0.23061,
    "h": 285.3
  },
  "luminance": 0.15927
}

Semantic roles & 50–950 ramp

primary
#7151F4
secondary
#E2EDB4
accent
#E501B8
background
#FAF8FF
surface
#F5EFFF
border
#CFCAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7151F4

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

Preview Lab → · Contrast checker → · Palette generator →

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