#7152BC#7152BC

#7152BC is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.4% C 0.160 H 293.6°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7152BC
RGBrgb(113, 82, 188)
HSLhsl(258, 44%, 53%)
HSVhsv(258, 56%, 74%)
CMYKcmyk(39.9%, 56.4%, 0%, 26.3%)
CIE-LABlab(43.03, 37.42, -51.61)
CIE-LCHlch(43.03, 63.75, 305.95°)
OKLaboklab(52.45% 0.0641 -0.1467)
OKLCHoklch(52.45% 0.16 293.6)
XYZxyz(18.9020, 13.1757, 49.1145)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152BC #9DBC52
analogous
#5268BC #7152BC #A652BC
triadic
#7152BC #BC7152 #52BC71
tetradic
#7152BC #BC5268 #9DBC52 #52BCA6
square
#7152BC #BC5268 #9DBC52 #52BCA6
split-complementary
#7152BC #BCA652 #68BC52
monochromatic
#3C296A #553A97 #7152BC #957ECD #B9AADE

Accessibility & contrast

On white

5.78
#7152BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7152BC
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152BC#FFFFFF#000000##FFFFFF
##7152BC1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B67C0
Deuteranopia (green-blind)
#2564BA
Tritanopia (blue-blind)
#5E687F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7152bc;
/* rgb */ color: rgb(113, 82, 188);
/* oklch */ color: oklch(52.4% 0.160 293.6);
Tailwind
colors: {
  custom: {
    50: '#9e83d1',
    500: '#7152bc',
    950: '#000000',
  },
}
SCSS
$custom: #7152bc;
$custom-light: #9e83d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7152bc",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 257.547,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52449,
    "c": 0.16008,
    "h": 293.6
  },
  "luminance": 0.13176
}

Semantic roles & 50–950 ramp

primary
#7152BC
secondary
#BECC9E
accent
#D454AE
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7152BC

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

Preview Lab → · Contrast checker → · Palette generator →

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