#731EBB#731EBB

#731EBB is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.2% C 0.220 H 302.4°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#731EBB
RGBrgb(115, 30, 187)
HSLhsl(272, 72%, 43%)
HSVhsv(272, 84%, 73%)
CMYKcmyk(38.5%, 84%, 0%, 26.7%)
CIE-LABlab(34.32, 62.05, -65.16)
CIE-LCHlch(34.32, 89.98, 313.60°)
OKLaboklab(46.25% 0.118 -0.1862)
OKLCHoklch(46.25% 0.22 302.4)
XYZxyz(16.5020, 8.1612, 47.7100)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731EBB #66BB1E
analogous
#251EBB #731EBB #BB1EB4
triadic
#731EBB #BB731E #1EBB73
tetradic
#731EBB #BB251E #66BB1E #1EB4BB
square
#731EBB #BB251E #66BB1E #1EB4BB
split-complementary
#731EBB #B4BB1E #1EBB25
monochromatic
#320D52 #531686 #731EBB #9237DF #AF6CE7

Accessibility & contrast

On white

7.98
#731EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#731EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731EBB
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731EBB#FFFFFF#000000##FFFFFF
##731EBB1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#634C70
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #731ebb;
/* rgb */ color: rgb(115, 30, 187);
/* oklch */ color: oklch(46.2% 0.220 302.4);
Tailwind
colors: {
  custom: {
    50: '#a267d1',
    500: '#731ebb',
    950: '#000000',
  },
}
SCSS
$custom: #731ebb;
$custom-light: #a267d1;
$custom-dark: #000000;
JSON
{
  "hex": "#731ebb",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 187
  },
  "hsl": {
    "h": 272.484,
    "s": 72.35,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46245,
    "c": 0.22043,
    "h": 302.4
  },
  "luminance": 0.08161
}

Semantic roles & 50–950 ramp

primary
#731EBB
secondary
#96CD67
accent
#EF398C
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #731EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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