#7152D4#7152D4

#7152D4 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.191 H 289.5°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7152D4
RGBrgb(113, 82, 212)
HSLhsl(254, 60%, 58%)
HSVhsv(254, 61%, 83%)
CMYKcmyk(46.7%, 61.3%, 0%, 16.9%)
CIE-LABlab(44.66, 44.18, -62.86)
CIE-LCHlch(44.66, 76.83, 305.10°)
OKLaboklab(54.16% 0.0635 -0.1797)
OKLCHoklch(54.16% 0.191 289.5)
XYZxyz(21.7076, 14.2979, 63.8906)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152D4 #B5D452
analogous
#5274D4 #7152D4 #B252D4
triadic
#7152D4 #D47152 #52D471
tetradic
#7152D4 #D45274 #B5D452 #52D4B2
square
#7152D4 #D45274 #B5D452 #52D4B2
split-complementary
#7152D4 #D4B252 #74D452
monochromatic
#3B2289 #502EBA #7152D4 #9983E0 #C1B4EC

Accessibility & contrast

On white

5.44
#7152D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7152D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7152D4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152D4#FFFFFF#000000##FFFFFF
##7152D41.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#0066D1
Tritanopia (blue-blind)
#51708B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7152d4;
/* rgb */ color: rgb(113, 82, 212);
/* oklch */ color: oklch(54.2% 0.191 289.5);
Tailwind
colors: {
  custom: {
    50: '#a184e2',
    500: '#7152d4',
    950: '#000000',
  },
}
SCSS
$custom: #7152d4;
$custom-light: #a184e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7152d4",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 254.308,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54163,
    "c": 0.19061,
    "h": 289.5
  },
  "luminance": 0.14299
}

Semantic roles & 50–950 ramp

primary
#7152D4
secondary
#CFDBA7
accent
#E344BD
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B15
muted
#7F7C84

Preview Lab

Preview with #7152D4

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

Preview Lab → · Contrast checker → · Palette generator →

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