#7157C9#7157C9

#7157C9 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.2% C 0.170 H 290.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7157C9
RGBrgb(113, 87, 201)
HSLhsl(254, 51%, 56%)
HSVhsv(254, 57%, 79%)
CMYKcmyk(43.8%, 56.7%, 0%, 21.2%)
CIE-LABlab(45.00, 38.16, -55.98)
CIE-LCHlch(45.00, 67.75, 304.29°)
OKLaboklab(54.18% 0.0582 -0.1595)
OKLCHoklch(54.18% 0.17 290.1)
XYZxyz(20.7579, 14.5434, 56.9605)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157C9 #AFC957
analogous
#5776C9 #7157C9 #AA57C9
triadic
#7157C9 #C97157 #57C971
tetradic
#7157C9 #C95776 #AFC957 #57C9AA
square
#7157C9 #C95776 #AFC957 #57C9AA
split-complementary
#7157C9 #C9AA57 #76C957
monochromatic
#3C287D #5237AC #7157C9 #9885D8 #BFB4E7

Accessibility & contrast

On white

5.37
#7157C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7157C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157C9
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157C9#FFFFFF#000000##FFFFFF
##7157C91.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116DCD
Deuteranopia (green-blind)
#1968C7
Tritanopia (blue-blind)
#577087
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7157c9;
/* rgb */ color: rgb(113, 87, 201);
/* oklch */ color: oklch(54.2% 0.170 290.1);
Tailwind
colors: {
  custom: {
    50: '#9f87da',
    500: '#7157c9',
    950: '#000000',
  },
}
SCSS
$custom: #7157c9;
$custom-light: #9f87da;
$custom-dark: #000000;
JSON
{
  "hex": "#7157c9",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 201
  },
  "hsl": {
    "h": 253.684,
    "s": 51.351,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54177,
    "c": 0.16977,
    "h": 290.1
  },
  "luminance": 0.14544
}

Semantic roles & 50–950 ramp

primary
#7157C9
secondary
#CBD5A7
accent
#DB4DBA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7157C9

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

Preview Lab → · Contrast checker → · Palette generator →

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