#7157F2#7157F2

#7157F2 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.2% C 0.221 H 284.6°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7157F2
RGBrgb(113, 87, 242)
HSLhsl(250, 86%, 65%)
HSVhsv(250, 64%, 95%)
CMYKcmyk(53.3%, 64%, 0%, 5.1%)
CIE-LABlab(47.93, 50.03, -74.54)
CIE-LCHlch(47.93, 89.77, 303.87°)
OKLaboklab(57.24% 0.056 -0.2141)
OKLCHoklch(57.24% 0.221 284.6)
XYZxyz(26.2404, 16.7364, 85.8350)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157F2 #D8F257
analogous
#578AF2 #7157F2 #BF57F2
triadic
#7157F2 #F27157 #57F271
tetradic
#7157F2 #F2578A #D8F257 #57F2BF
square
#7157F2 #F2578A #D8F257 #57F2BF
split-complementary
#7157F2 #F2BF57 #8AF257
monochromatic
#2D0FC0 #411EEE #7157F2 #A190F6 #D1C9FB

Accessibility & contrast

On white

4.83
#7157F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7157F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157F2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157F2#FFFFFF#000000##FFFFFF
##7157F21.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#397D9D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7157f2;
/* rgb */ color: rgb(113, 87, 242);
/* oklch */ color: oklch(57.2% 0.221 284.6);
Tailwind
colors: {
  custom: {
    50: '#a488f7',
    500: '#7157f2',
    950: '#000000',
  },
}
SCSS
$custom: #7157f2;
$custom-light: #a488f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7157f2",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 250.065,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.57235,
    "c": 0.22126,
    "h": 284.6
  },
  "luminance": 0.16738
}

Semantic roles & 50–950 ramp

primary
#7157F2
secondary
#E4EDB8
accent
#E203BD
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7157F2

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

Preview Lab → · Contrast checker → · Palette generator →

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