#7152BD#7152BD

#7152BD is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.5% C 0.161 H 293.4°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7152BD
RGBrgb(113, 82, 189)
HSLhsl(257, 45%, 53%)
HSVhsv(257, 57%, 74%)
CMYKcmyk(40.2%, 56.6%, 0%, 25.9%)
CIE-LABlab(43.09, 37.70, -52.09)
CIE-LCHlch(43.09, 64.31, 305.89°)
OKLaboklab(52.52% 0.0641 -0.1481)
OKLCHoklch(52.52% 0.161 293.4)
XYZxyz(19.0102, 13.2189, 49.6842)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152BD #9EBD52
analogous
#5268BD #7152BD #A652BD
triadic
#7152BD #BD7152 #52BD71
tetradic
#7152BD #BD5268 #9EBD52 #52BDA6
square
#7152BD #BD5268 #9EBD52 #52BDA6
split-complementary
#7152BD #BDA652 #68BD52
monochromatic
#3C296C #553A98 #7152BD #957ECE #BAABDF

Accessibility & contrast

On white

5.76
#7152BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7152BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7152BD
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152BD#FFFFFF#000000##FFFFFF
##7152BD1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1967C1
Deuteranopia (green-blind)
#2464BB
Tritanopia (blue-blind)
#5D697F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7152bd;
/* rgb */ color: rgb(113, 82, 189);
/* oklch */ color: oklch(52.5% 0.161 293.4);
Tailwind
colors: {
  custom: {
    50: '#9e84d1',
    500: '#7152bd',
    950: '#000000',
  },
}
SCSS
$custom: #7152bd;
$custom-light: #9e84d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7152bd",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 189
  },
  "hsl": {
    "h": 257.383,
    "s": 44.77,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52517,
    "c": 0.16137,
    "h": 293.4
  },
  "luminance": 0.13219
}

Semantic roles & 50–950 ramp

primary
#7152BD
secondary
#BFCC9E
accent
#D453AF
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7152BD

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

Preview Lab → · Contrast checker → · Palette generator →

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