#7157AC#7157AC

#7157AC is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.3% C 0.131 H 295.6°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7157AC
RGBrgb(113, 87, 172)
HSLhsl(258, 34%, 51%)
HSVhsv(258, 49%, 67%)
CMYKcmyk(34.3%, 49.4%, 0%, 32.5%)
CIE-LABlab(43.22, 30.07, -41.92)
CIE-LCHlch(43.22, 51.59, 305.65°)
OKLaboklab(52.28% 0.0567 -0.1182)
OKLCHoklch(52.28% 0.131 295.6)
XYZxyz(17.6628, 13.3054, 40.6593)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157AC #92AC57
analogous
#5767AC #7157AC #9B57AC
triadic
#7157AC #AC7157 #57AC71
tetradic
#7157AC #AC5767 #92AC57 #57AC9B
square
#7157AC #AC5767 #92AC57 #57AC9B
split-complementary
#7157AC #AC9B57 #67AC57
monochromatic
#3B2D5B #564184 #7157AC #9480C0 #B6A9D4

Accessibility & contrast

On white

5.74
#7157AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#7157AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157AC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157AC#FFFFFF#000000##FFFFFF
##7157AC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3967AF
Deuteranopia (green-blind)
#3E65AA
Tritanopia (blue-blind)
#646779
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7157ac;
/* rgb */ color: rgb(113, 87, 172);
/* oklch */ color: oklch(52.3% 0.131 295.6);
Tailwind
colors: {
  custom: {
    50: '#9d87c5',
    500: '#7157ac',
    950: '#000000',
  },
}
SCSS
$custom: #7157ac;
$custom-light: #9d87c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7157ac",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 172
  },
  "hsl": {
    "h": 258.353,
    "s": 33.865,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5228,
    "c": 0.13113,
    "h": 295.6
  },
  "luminance": 0.13306
}

Semantic roles & 50–950 ramp

primary
#7157AC
secondary
#B7C29D
accent
#CA5EA9
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0E0B13
muted
#7E7C82

Preview Lab

Preview with #7157AC

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

Preview Lab → · Contrast checker → · Palette generator →

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