#7131B2#7131B2

#7131B2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.193 H 302.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7131B2
RGBrgb(113, 49, 178)
HSLhsl(270, 57%, 45%)
HSVhsv(270, 72%, 70%)
CMYKcmyk(36.5%, 72.5%, 0%, 30.2%)
CIE-LABlab(35.83, 52.33, -57.36)
CIE-LCHlch(35.83, 77.64, 312.37°)
OKLaboklab(47.02% 0.1022 -0.1635)
OKLCHoklch(47.02% 0.193 302)
XYZxyz(15.9423, 8.9216, 42.9930)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7131B2 #72B231
analogous
#3132B2 #7131B2 #B131B2
triadic
#7131B2 #B27131 #31B271
tetradic
#7131B2 #B23132 #72B231 #31B2B1
square
#7131B2 #B23132 #72B231 #31B2B1
split-complementary
#7131B2 #B2B131 #32B231
monochromatic
#341752 #532482 #7131B2 #9051CF #AE81DC

Accessibility & contrast

On white

7.54
#7131B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7131B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7131B2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7131B2#FFFFFF#000000##FFFFFF
##7131B21.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#63516E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7131b2;
/* rgb */ color: rgb(113, 49, 178);
/* oklch */ color: oklch(47.0% 0.193 302.0);
Tailwind
colors: {
  custom: {
    50: '#9f6fca',
    500: '#7131b2',
    950: '#000000',
  },
}
SCSS
$custom: #7131b2;
$custom-light: #9f6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7131b2",
  "rgb": {
    "r": 113,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 269.767,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47018,
    "c": 0.19281,
    "h": 302
  },
  "luminance": 0.08922
}

Semantic roles & 50–950 ramp

primary
#7131B2
secondary
#A0C579
accent
#E04894
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7131B2

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

Preview Lab → · Contrast checker → · Palette generator →

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