#731B7A#731B7A

#731B7A is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.0% C 0.165 H 324.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#731B7A
RGBrgb(115, 27, 122)
HSLhsl(296, 64%, 29%)
HSVhsv(296, 78%, 48%)
CMYKcmyk(5.7%, 77.9%, 0%, 52.2%)
CIE-LABlab(28.99, 49.55, -34.11)
CIE-LCHlch(28.99, 60.15, 325.46°)
OKLaboklab(40.96% 0.1345 -0.095)
OKLCHoklch(40.96% 0.165 324.8)
XYZxyz(10.9747, 5.8346, 18.9567)
Luminance0.0583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B7A #227A1B
analogous
#441B7A #731B7A #7A1B52
triadic
#731B7A #7A731B #1B7A73
tetradic
#731B7A #7A441B #227A1B #1B527A
square
#731B7A #7A441B #227A1B #1B527A
split-complementary
#731B7A #527A1B #1B7A44
monochromatic
#180619 #441048 #731B7A #A226AC #C93CD4

Accessibility & contrast

On white

9.69
#731B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#731B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B7A
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B7A#FFFFFF#000000##FFFFFF
##731B7A1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#2F4878
Tritanopia (blue-blind)
#762C49
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #731b7a;
/* rgb */ color: rgb(115, 27, 122);
/* oklch */ color: oklch(41.0% 0.165 324.8);
Tailwind
colors: {
  custom: {
    50: '#9f62a1',
    500: '#731b7a',
    950: '#000000',
  },
}
SCSS
$custom: #731b7a;
$custom-light: #9f62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#731b7a",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 295.579,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40956,
    "c": 0.16469,
    "h": 324.8
  },
  "luminance": 0.05834
}

Semantic roles & 50–950 ramp

primary
#731B7A
secondary
#4BAE43
accent
#E7414D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #731B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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