#7157CF#7157CF

#7157CF is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.6% C 0.178 H 289.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7157CF
RGBrgb(113, 87, 207)
HSLhsl(253, 56%, 58%)
HSVhsv(253, 58%, 81%)
CMYKcmyk(45.4%, 58%, 0%, 18.8%)
CIE-LABlab(45.40, 39.88, -58.78)
CIE-LCHlch(45.40, 71.03, 304.15°)
OKLaboklab(54.6% 0.0582 -0.1677)
OKLCHoklch(54.6% 0.178 289.1)
XYZxyz(21.4775, 14.8313, 60.7505)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157CF #B5CF57
analogous
#5779CF #7157CF #AD57CF
triadic
#7157CF #CF7157 #57CF71
tetradic
#7157CF #CF5779 #B5CF57 #57CFAD
square
#7157CF #CF5779 #B5CF57 #57CFAD
split-complementary
#7157CF #CFAD57 #79CF57
monochromatic
#3B2685 #5034B5 #7157CF #9987DD #C1B6EA

Accessibility & contrast

On white

5.29
#7157CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7157CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157CF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157CF#FFFFFF#000000##FFFFFF
##7157CF1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#0169CC
Tritanopia (blue-blind)
#54728B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7157cf;
/* rgb */ color: rgb(113, 87, 207);
/* oklch */ color: oklch(54.6% 0.178 289.1);
Tailwind
colors: {
  custom: {
    50: '#a087de',
    500: '#7157cf',
    950: '#000000',
  },
}
SCSS
$custom: #7157cf;
$custom-light: #a087de;
$custom-dark: #000000;
JSON
{
  "hex": "#7157cf",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 253,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54599,
    "c": 0.17754,
    "h": 289.1
  },
  "luminance": 0.14832
}

Semantic roles & 50–950 ramp

primary
#7157CF
secondary
#CFD9A9
accent
#DF49BE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7157CF

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

Preview Lab → · Contrast checker → · Palette generator →

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