#7157CA#7157CA

#7157CA is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.2% C 0.171 H 289.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7157CA
RGBrgb(113, 87, 202)
HSLhsl(254, 52%, 57%)
HSVhsv(254, 57%, 79%)
CMYKcmyk(44.1%, 56.9%, 0%, 20.8%)
CIE-LABlab(45.07, 38.45, -56.45)
CIE-LCHlch(45.07, 68.30, 304.26°)
OKLaboklab(54.25% 0.0582 -0.1609)
OKLCHoklch(54.25% 0.171 289.9)
XYZxyz(20.8759, 14.5906, 57.5820)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157CA #B0CA57
analogous
#5777CA #7157CA #AB57CA
triadic
#7157CA #CA7157 #57CA71
tetradic
#7157CA #CA5777 #B0CA57 #57CAAB
square
#7157CA #CA5777 #B0CA57 #57CAAB
split-complementary
#7157CA #CAAB57 #77CA57
monochromatic
#3C287F #5137AD #7157CA #9886D9 #C0B4E7

Accessibility & contrast

On white

5.36
#7157CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7157CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157CA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157CA#FFFFFF#000000##FFFFFF
##7157CA1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E6DCE
Deuteranopia (green-blind)
#1668C8
Tritanopia (blue-blind)
#577088
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7157ca;
/* rgb */ color: rgb(113, 87, 202);
/* oklch */ color: oklch(54.2% 0.171 289.9);
Tailwind
colors: {
  custom: {
    50: '#9f87db',
    500: '#7157ca',
    950: '#000000',
  },
}
SCSS
$custom: #7157ca;
$custom-light: #9f87db;
$custom-dark: #000000;
JSON
{
  "hex": "#7157ca",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 253.565,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54246,
    "c": 0.17108,
    "h": 289.9
  },
  "luminance": 0.14591
}

Semantic roles & 50–950 ramp

primary
#7157CA
secondary
#CBD6A7
accent
#DB4CBB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7157CA

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

Preview Lab → · Contrast checker → · Palette generator →

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