#7152CB#7152CB

#7152CB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.5% C 0.179 H 290.9°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7152CB
RGBrgb(113, 82, 203)
HSLhsl(255, 54%, 56%)
HSVhsv(255, 60%, 80%)
CMYKcmyk(44.3%, 59.6%, 0%, 20.4%)
CIE-LABlab(44.03, 41.62, -58.70)
CIE-LCHlch(44.03, 71.96, 305.34°)
OKLaboklab(53.5% 0.0639 -0.1675)
OKLCHoklch(53.5% 0.179 290.9)
XYZxyz(20.6038, 13.8564, 58.0773)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7152CB #ACCB52
analogous
#526FCB #7152CB #AD52CB
triadic
#7152CB #CB7152 #52CB71
tetradic
#7152CB #CB526F #ACCB52 #52CBAD
square
#7152CB #CB526F #ACCB52 #52CBAD
split-complementary
#7152CB #CBAD52 #6FCB52
monochromatic
#3C267D #5334AC #7152CB #9881D9 #BEB0E7

Accessibility & contrast

On white

5.57
#7152CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7152CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7152CB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7152CB#FFFFFF#000000##FFFFFF
##7152CB1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#566D87
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7152cb;
/* rgb */ color: rgb(113, 82, 203);
/* oklch */ color: oklch(53.5% 0.179 290.9);
Tailwind
colors: {
  custom: {
    50: '#a084dc',
    500: '#7152cb',
    950: '#000000',
  },
}
SCSS
$custom: #7152cb;
$custom-light: #a084dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7152cb",
  "rgb": {
    "r": 113,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 255.372,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.53502,
    "c": 0.1793,
    "h": 290.9
  },
  "luminance": 0.13857
}

Semantic roles & 50–950 ramp

primary
#7152CB
secondary
#C9D5A3
accent
#DD4BB8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7152CB

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

Preview Lab → · Contrast checker → · Palette generator →

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