#731FB3#731FB3

#731FB3 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.6% C 0.212 H 304.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#731FB3
RGBrgb(115, 31, 179)
HSLhsl(274, 70%, 41%)
HSVhsv(274, 83%, 70%)
CMYKcmyk(35.8%, 82.7%, 0%, 29.8%)
CIE-LABlab(33.73, 59.96, -61.37)
CIE-LCHlch(33.73, 85.80, 314.33°)
OKLaboklab(45.63% 0.1199 -0.1751)
OKLCHoklch(45.63% 0.212 304.4)
XYZxyz(15.6950, 7.8795, 43.3331)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731FB3 #5FB31F
analogous
#291FB3 #731FB3 #B31FA9
triadic
#731FB3 #B3731F #1FB373
tetradic
#731FB3 #B3291F #5FB31F #1FA9B3
square
#731FB3 #B3291F #5FB31F #1FA9B3
split-complementary
#731FB3 #A9B31F #1FB329
monochromatic
#300D4B #51167F #731FB3 #9333DC #AF68E5

Accessibility & contrast

On white

8.15
#731FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#731FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731FB3
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731FB3#FFFFFF#000000##FFFFFF
##731FB31.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#66496B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #731fb3;
/* rgb */ color: rgb(115, 31, 179);
/* oklch */ color: oklch(45.6% 0.212 304.4);
Tailwind
colors: {
  custom: {
    50: '#a267cb',
    500: '#731fb3',
    950: '#000000',
  },
}
SCSS
$custom: #731fb3;
$custom-light: #a267cb;
$custom-dark: #000000;
JSON
{
  "hex": "#731fb3",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 274.054,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45628,
    "c": 0.21221,
    "h": 304.4
  },
  "luminance": 0.07879
}

Semantic roles & 50–950 ramp

primary
#731FB3
secondary
#90CA64
accent
#ED3B88
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #731FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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