#7152F5#7152F5

#7152F5 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.8% C 0.231 H 285.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7152F5
RGBrgb(113, 82, 245)
HSLhsl(251, 89%, 64%)
HSVhsv(251, 67%, 96%)
CMYKcmyk(53.9%, 66.5%, 0%, 3.9%)
CIE-LABlab(47.15, 53.62, -77.48)
CIE-LCHlch(47.15, 94.23, 304.69°)
OKLaboklab(56.75% 0.06 -0.2227)
OKLCHoklch(56.75% 0.231 285.1)
XYZxyz(26.3038, 16.1364, 88.0971)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152F5 #D6F552
analogous
#5285F5 #7152F5 #C352F5
triadic
#7152F5 #F57152 #52F571
tetradic
#7152F5 #F55285 #D6F552 #52F5C3
square
#7152F5 #F55285 #D6F552 #52F5C3
split-complementary
#7152F5 #F5C352 #85F552
monochromatic
#2E0BC1 #4218F2 #7152F5 #A08CF8 #D0C6FC

Accessibility & contrast

On white

4.97
#7152F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7152F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7152F5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152F5#FFFFFF#000000##FFFFFF
##7152F51.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FA
Deuteranopia (green-blind)
#006BF2
Tritanopia (blue-blind)
#377C9D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7152f5;
/* rgb */ color: rgb(113, 82, 245);
/* oklch */ color: oklch(56.8% 0.231 285.1);
Tailwind
colors: {
  custom: {
    50: '#a585fa',
    500: '#7152f5',
    950: '#000000',
  },
}
SCSS
$custom: #7152f5;
$custom-light: #a585fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7152f5",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 245
  },
  "hsl": {
    "h": 251.411,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5675,
    "c": 0.23065,
    "h": 285.1
  },
  "luminance": 0.16138
}

Semantic roles & 50–950 ramp

primary
#7152F5
secondary
#E3EEB5
accent
#E600BA
background
#FAF8FF
surface
#F5EFFF
border
#CFCAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7152F5

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

Preview Lab → · Contrast checker → · Palette generator →

#7152F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva