#7157DC#7157DC

#7157DC is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.5% C 0.194 H 287.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7157DC
RGBrgb(113, 87, 220)
HSLhsl(252, 66%, 60%)
HSVhsv(252, 60%, 86%)
CMYKcmyk(48.6%, 60.5%, 0%, 13.7%)
CIE-LABlab(46.30, 43.63, -64.76)
CIE-LCHlch(46.30, 78.08, 303.97°)
OKLaboklab(55.54% 0.0577 -0.1853)
OKLCHoklch(55.54% 0.194 287.3)
XYZxyz(23.1327, 15.4934, 69.4679)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157DC #C2DC57
analogous
#5780DC #7157DC #B357DC
triadic
#7157DC #DC7157 #57DC71
tetradic
#7157DC #DC5780 #C2DC57 #57DCB3
square
#7157DC #DC5780 #C2DC57 #57DCB3
split-complementary
#7157DC #DCB357 #80DC57
monochromatic
#372099 #4A2ACB #7157DC #9C8AE7 #C7BCF1

Accessibility & contrast

On white

5.12
#7157DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7157DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157DC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157DC#FFFFFF#000000##FFFFFF
##7157DC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#4C7691
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7157dc;
/* rgb */ color: rgb(113, 87, 220);
/* oklch */ color: oklch(55.5% 0.194 287.3);
Tailwind
colors: {
  custom: {
    50: '#a287e8',
    500: '#7157dc',
    950: '#000000',
  },
}
SCSS
$custom: #7157dc;
$custom-light: #a287e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7157dc",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 251.729,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.55544,
    "c": 0.19409,
    "h": 287.3
  },
  "luminance": 0.15494
}

Semantic roles & 50–950 ramp

primary
#7157DC
secondary
#D7E1AE
accent
#CD18AA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7157DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7157DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva