#7157E3#7157E3

#7157E3 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.1% C 0.203 H 286.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7157E3
RGBrgb(113, 87, 227)
HSLhsl(251, 71%, 62%)
HSVhsv(251, 62%, 89%)
CMYKcmyk(50.2%, 61.7%, 0%, 11%)
CIE-LABlab(46.81, 45.66, -67.91)
CIE-LCHlch(46.81, 81.84, 303.91°)
OKLaboklab(56.07% 0.0573 -0.1946)
OKLCHoklch(56.07% 0.203 286.4)
XYZxyz(24.0793, 15.8720, 74.4530)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157E3 #C9E357
analogous
#5783E3 #7157E3 #B757E3
triadic
#7157E3 #E37157 #57E371
tetradic
#7157E3 #E35783 #C9E357 #57E3B7
square
#7157E3 #E35783 #C9E357 #57E3B7
split-complementary
#7157E3 #E3B757 #83E357
monochromatic
#351BA4 #4624D9 #7157E3 #9D8BEC #CAC0F4

Accessibility & contrast

On white

5.03
#7157E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7157E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157E3
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157E3#FFFFFF#000000##FFFFFF
##7157E31.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#006BE0
Tritanopia (blue-blind)
#477895
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7157e3;
/* rgb */ color: rgb(113, 87, 227);
/* oklch */ color: oklch(56.1% 0.203 286.4);
Tailwind
colors: {
  custom: {
    50: '#a288ed',
    500: '#7157e3',
    950: '#000000',
  },
}
SCSS
$custom: #7157e3;
$custom-light: #a288ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7157e3",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 227
  },
  "hsl": {
    "h": 251.143,
    "s": 71.429,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56071,
    "c": 0.20285,
    "h": 286.4
  },
  "luminance": 0.15873
}

Semantic roles & 50–950 ramp

primary
#7157E3
secondary
#DBE5B1
accent
#D312B0
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7157E3

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

Preview Lab → · Contrast checker → · Palette generator →

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