#7157AF#7157AF

#7157AF is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.5% C 0.135 H 294.9°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7157AF
RGBrgb(113, 87, 175)
HSLhsl(258, 35%, 51%)
HSVhsv(258, 50%, 69%)
CMYKcmyk(35.4%, 50.3%, 0%, 31.4%)
CIE-LABlab(43.39, 30.89, -43.41)
CIE-LCHlch(43.39, 53.28, 305.43°)
OKLaboklab(52.46% 0.057 -0.1226)
OKLCHoklch(52.46% 0.135 294.9)
XYZxyz(17.9541, 13.4219, 42.1939)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157AF #95AF57
analogous
#5769AF #7157AF #9D57AF
triadic
#7157AF #AF7157 #57AF71
tetradic
#7157AF #AF5769 #95AF57 #57AF9D
square
#7157AF #AF5769 #95AF57 #57AF9D
split-complementary
#7157AF #AF9D57 #69AF57
monochromatic
#3C2D5F #564188 #7157AF #9480C3 #B7AAD6

Accessibility & contrast

On white

5.70
#7157AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7157AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157AF
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157AF#FFFFFF#000000##FFFFFF
##7157AF1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3767B2
Deuteranopia (green-blind)
#3C65AD
Tritanopia (blue-blind)
#62687B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7157af;
/* rgb */ color: rgb(113, 87, 175);
/* oklch */ color: oklch(52.5% 0.135 294.9);
Tailwind
colors: {
  custom: {
    50: '#9d87c7',
    500: '#7157af',
    950: '#000000',
  },
}
SCSS
$custom: #7157af;
$custom-light: #9d87c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7157af",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 175
  },
  "hsl": {
    "h": 257.727,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52464,
    "c": 0.13521,
    "h": 294.9
  },
  "luminance": 0.13422
}

Semantic roles & 50–950 ramp

primary
#7157AF
secondary
#B9C49E
accent
#CC5CAB
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0F0B13
muted
#7E7C82

Preview Lab

Preview with #7157AF

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

Preview Lab → · Contrast checker → · Palette generator →

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