#731AB3#731AB3

#731AB3 is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.3% C 0.216 H 304.8°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#731AB3
RGBrgb(115, 26, 179)
HSLhsl(275, 75%, 40%)
HSVhsv(275, 85%, 70%)
CMYKcmyk(35.8%, 85.5%, 0%, 29.8%)
CIE-LABlab(33.22, 61.46, -62.21)
CIE-LCHlch(33.22, 87.45, 314.65°)
OKLaboklab(45.27% 0.1231 -0.1775)
OKLCHoklch(45.27% 0.216 304.8)
XYZxyz(15.5744, 7.6384, 43.2929)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731AB3 #5AB31A
analogous
#271AB3 #731AB3 #B31AA6
triadic
#731AB3 #B3731A #1AB373
tetradic
#731AB3 #B3271A #5AB31A #1AA6B3
square
#731AB3 #B3271A #5AB31A #1AA6B3
split-complementary
#731AB3 #A6B31A #1AB327
monochromatic
#2E0A48 #51127E #731AB3 #942AE0 #AF60E8

Accessibility & contrast

On white

8.31
#731AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#731AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731AB3
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731AB3#FFFFFF#000000##FFFFFF
##731AB31.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#66476A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #731ab3;
/* rgb */ color: rgb(115, 26, 179);
/* oklch */ color: oklch(45.3% 0.216 304.8);
Tailwind
colors: {
  custom: {
    50: '#a265cb',
    500: '#731ab3',
    950: '#000000',
  },
}
SCSS
$custom: #731ab3;
$custom-light: #a265cb;
$custom-dark: #000000;
JSON
{
  "hex": "#731ab3",
  "rgb": {
    "r": 115,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 274.902,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45273,
    "c": 0.21602,
    "h": 304.8
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#731AB3
secondary
#8BCC5D
accent
#F13785
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #731AB3

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

Preview Lab → · Contrast checker → · Palette generator →

#731AB3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva