#7131AB#7131AB

#7131AB is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.185 H 303.9°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7131AB
RGBrgb(113, 49, 171)
HSLhsl(271, 55%, 43%)
HSVhsv(271, 71%, 67%)
CMYKcmyk(33.9%, 71.3%, 0%, 32.9%)
CIE-LABlab(35.30, 50.63, -54.06)
CIE-LCHlch(35.30, 74.07, 313.12°)
OKLaboklab(46.47% 0.1035 -0.1538)
OKLCHoklch(46.47% 0.185 303.9)
XYZxyz(15.2574, 8.6476, 39.3855)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7131AB #6BAB31
analogous
#3431AB #7131AB #AB31A8
triadic
#7131AB #AB7131 #31AB71
tetradic
#7131AB #AB3431 #6BAB31 #31A8AB
square
#7131AB #AB3431 #6BAB31 #31A8AB
split-complementary
#7131AB #A8AB31 #31AB34
monochromatic
#32164C #52237B #7131AB #904DCC #AD7DDA

Accessibility & contrast

On white

7.69
#7131AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7131AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7131AB
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7131AB#FFFFFF#000000##FFFFFF
##7131AB1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#664E6B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7131ab;
/* rgb */ color: rgb(113, 49, 171);
/* oklch */ color: oklch(46.5% 0.185 303.9);
Tailwind
colors: {
  custom: {
    50: '#9f6fc5',
    500: '#7131ab',
    950: '#000000',
  },
}
SCSS
$custom: #7131ab;
$custom-light: #9f6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7131ab",
  "rgb": {
    "r": 113,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 271.475,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46469,
    "c": 0.18534,
    "h": 303.9
  },
  "luminance": 0.08648
}

Semantic roles & 50–950 ramp

primary
#7131AB
secondary
#9AC275
accent
#DF4990
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7131AB

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

Preview Lab → · Contrast checker → · Palette generator →

#7131AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva