#731FBD#731FBD

#731FBD is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.5% C 0.222 H 301.8°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#731FBD
RGBrgb(115, 31, 189)
HSLhsl(272, 72%, 43%)
HSVhsv(272, 84%, 74%)
CMYKcmyk(39.2%, 83.6%, 0%, 25.9%)
CIE-LABlab(34.60, 62.19, -65.88)
CIE-LCHlch(34.60, 90.60, 313.35°)
OKLaboklab(46.49% 0.1167 -0.1883)
OKLCHoklch(46.49% 0.222 301.8)
XYZxyz(16.7433, 8.2988, 48.8540)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731FBD #69BD1F
analogous
#241FBD #731FBD #BD1FB8
triadic
#731FBD #BD731F #1FBD73
tetradic
#731FBD #BD241F #69BD1F #1FB8BD
square
#731FBD #BD241F #69BD1F #1FB8BD
split-complementary
#731FBD #B8BD1F #1FBD24
monochromatic
#330E54 #531688 #731FBD #923ADF #AF6FE7

Accessibility & contrast

On white

7.90
#731FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#731FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731FBD
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731FBD#FFFFFF#000000##FFFFFF
##731FBD1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#624D71
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #731fbd;
/* rgb */ color: rgb(115, 31, 189);
/* oklch */ color: oklch(46.5% 0.222 301.8);
Tailwind
colors: {
  custom: {
    50: '#a367d2',
    500: '#731fbd',
    950: '#000000',
  },
}
SCSS
$custom: #731fbd;
$custom-light: #a367d2;
$custom-dark: #000000;
JSON
{
  "hex": "#731fbd",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 189
  },
  "hsl": {
    "h": 271.899,
    "s": 71.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46494,
    "c": 0.22154,
    "h": 301.8
  },
  "luminance": 0.08299
}

Semantic roles & 50–950 ramp

primary
#731FBD
secondary
#99CE6A
accent
#EF398E
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #731FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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