#731B9F#731B9F

#731B9F is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.7% C 0.197 H 310.6°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#731B9F
RGBrgb(115, 27, 159)
HSLhsl(280, 71%, 36%)
HSVhsv(280, 83%, 62%)
CMYKcmyk(27.7%, 83%, 0%, 37.6%)
CIE-LABlab(31.65, 56.88, -52.74)
CIE-LCHlch(31.65, 77.57, 317.17°)
OKLaboklab(43.67% 0.1284 -0.1497)
OKLCHoklch(43.67% 0.197 310.6)
XYZxyz(13.7189, 6.9322, 33.4095)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B9F #479F1B
analogous
#311B9F #731B9F #9F1B89
triadic
#731B9F #9F731B #1B9F73
tetradic
#731B9F #9F311B #479F1B #1B899F
square
#731B9F #9F311B #479F1B #1B899F
split-complementary
#731B9F #899F1B #1B9F31
monochromatic
#270936 #4D126B #731B9F #9924D3 #B253E2

Accessibility & contrast

On white

8.80
#731B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#731B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B9F
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B9F#FFFFFF#000000##FFFFFF
##731B9F1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#004C9C
Tritanopia (blue-blind)
#6D3E5F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731b9f;
/* rgb */ color: rgb(115, 27, 159);
/* oklch */ color: oklch(43.7% 0.197 310.6);
Tailwind
colors: {
  custom: {
    50: '#a064bc',
    500: '#731b9f',
    950: '#000000',
  },
}
SCSS
$custom: #731b9f;
$custom-light: #a064bc;
$custom-dark: #000000;
JSON
{
  "hex": "#731b9f",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 280,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43672,
    "c": 0.19721,
    "h": 310.6
  },
  "luminance": 0.06932
}

Semantic roles & 50–950 ramp

primary
#731B9F
secondary
#78C551
accent
#EE3A76
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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