#7157CD#7157CD

#7157CD is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.5% C 0.175 H 289.4°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7157CD
RGBrgb(113, 87, 205)
HSLhsl(253, 54%, 57%)
HSVhsv(253, 58%, 80%)
CMYKcmyk(44.9%, 57.6%, 0%, 19.6%)
CIE-LABlab(45.27, 39.31, -57.85)
CIE-LCHlch(45.27, 69.94, 304.19°)
OKLaboklab(54.46% 0.0582 -0.165)
OKLCHoklch(54.46% 0.175 289.4)
XYZxyz(21.2346, 14.7341, 59.4709)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157CD #B3CD57
analogous
#5778CD #7157CD #AC57CD
triadic
#7157CD #CD7157 #57CD71
tetradic
#7157CD #CD5778 #B3CD57 #57CDAC
square
#7157CD #CD5778 #B3CD57 #57CDAC
split-complementary
#7157CD #CDAC57 #78CD57
monochromatic
#3B2783 #5035B2 #7157CD #9986DB #C1B5E9

Accessibility & contrast

On white

5.32
#7157CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7157CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157CD
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157CD#FFFFFF#000000##FFFFFF
##7157CD1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016DD1
Deuteranopia (green-blind)
#0B68CA
Tritanopia (blue-blind)
#55718A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7157cd;
/* rgb */ color: rgb(113, 87, 205);
/* oklch */ color: oklch(54.5% 0.175 289.4);
Tailwind
colors: {
  custom: {
    50: '#a087dd',
    500: '#7157cd',
    950: '#000000',
  },
}
SCSS
$custom: #7157cd;
$custom-light: #a087dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7157cd",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 253.22,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54457,
    "c": 0.17497,
    "h": 289.4
  },
  "luminance": 0.14735
}

Semantic roles & 50–950 ramp

primary
#7157CD
secondary
#CDD8A8
accent
#DD4ABD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7157CD

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

Preview Lab → · Contrast checker → · Palette generator →

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