#7157E6#7157E6

#7157E6 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.3% C 0.207 H 286.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7157E6
RGBrgb(113, 87, 230)
HSLhsl(251, 74%, 62%)
HSVhsv(251, 62%, 90%)
CMYKcmyk(50.9%, 62.2%, 0%, 9.8%)
CIE-LABlab(47.03, 46.53, -69.25)
CIE-LCHlch(47.03, 83.43, 303.90°)
OKLaboklab(56.3% 0.0571 -0.1985)
OKLCHoklch(56.3% 0.207 286)
XYZxyz(24.4969, 16.0390, 76.6526)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157E6 #CCE657
analogous
#5785E6 #7157E6 #B857E6
triadic
#7157E6 #E67157 #57E671
tetradic
#7157E6 #E65785 #CCE657 #57E6B8
square
#7157E6 #E65785 #CCE657 #57E6B8
split-complementary
#7157E6 #E6B857 #85E657
monochromatic
#3319A9 #4422DE #7157E6 #9E8CEE #CBC2F6

Accessibility & contrast

On white

4.99
#7157E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7157E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157E6
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157E6#FFFFFF#000000##FFFFFF
##7157E61.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EB
Deuteranopia (green-blind)
#006BE3
Tritanopia (blue-blind)
#447996
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7157e6;
/* rgb */ color: rgb(113, 87, 230);
/* oklch */ color: oklch(56.3% 0.207 286.0);
Tailwind
colors: {
  custom: {
    50: '#a388ef',
    500: '#7157e6',
    950: '#000000',
  },
}
SCSS
$custom: #7157e6;
$custom-light: #a388ef;
$custom-dark: #000000;
JSON
{
  "hex": "#7157e6",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 230
  },
  "hsl": {
    "h": 250.909,
    "s": 74.093,
    "l": 62.157
  },
  "oklch": {
    "l": 0.563,
    "c": 0.20657,
    "h": 286
  },
  "luminance": 0.1604
}

Semantic roles & 50–950 ramp

primary
#7157E6
secondary
#DDE7B2
accent
#D60FB2
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7157E6

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

Preview Lab → · Contrast checker → · Palette generator →

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