#7157DF#7157DF

#7157DF is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.8% C 0.198 H 286.9°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7157DF
RGBrgb(113, 87, 223)
HSLhsl(251, 68%, 61%)
HSVhsv(251, 61%, 87%)
CMYKcmyk(49.3%, 61%, 0%, 12.5%)
CIE-LABlab(46.52, 44.50, -66.11)
CIE-LCHlch(46.52, 79.70, 303.94°)
OKLaboklab(55.77% 0.0576 -0.1893)
OKLCHoklch(55.77% 0.198 286.9)
XYZxyz(23.5336, 15.6537, 71.5792)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157DF #C5DF57
analogous
#5781DF #7157DF #B557DF
triadic
#7157DF #DF7157 #57DF71
tetradic
#7157DF #DF5781 #C5DF57 #57DFB5
square
#7157DF #DF5781 #C5DF57 #57DFB5
split-complementary
#7157DF #DFB557 #81DF57
monochromatic
#361E9E #4828D1 #7157DF #9C8AE9 #C8BEF3

Accessibility & contrast

On white

5.08
#7157DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7157DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157DF
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157DF#FFFFFF#000000##FFFFFF
##7157DF1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#006ADC
Tritanopia (blue-blind)
#4A7793
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7157df;
/* rgb */ color: rgb(113, 87, 223);
/* oklch */ color: oklch(55.8% 0.198 286.9);
Tailwind
colors: {
  custom: {
    50: '#a287ea',
    500: '#7157df',
    950: '#000000',
  },
}
SCSS
$custom: #7157df;
$custom-light: #a287ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7157df",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 223
  },
  "hsl": {
    "h": 251.471,
    "s": 68,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55768,
    "c": 0.19786,
    "h": 286.9
  },
  "luminance": 0.15655
}

Semantic roles & 50–950 ramp

primary
#7157DF
secondary
#D9E3AF
accent
#D016AC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7157DF

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

Preview Lab → · Contrast checker → · Palette generator →

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