#731F98#731F98

#731F98 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.187 H 312.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#731F98
RGBrgb(115, 31, 152)
HSLhsl(282, 66%, 36%)
HSVhsv(282, 80%, 60%)
CMYKcmyk(24.3%, 79.6%, 0%, 40.4%)
CIE-LABlab(31.56, 54.10, -48.62)
CIE-LCHlch(31.56, 72.74, 318.05°)
OKLaboklab(43.44% 0.1269 -0.1376)
OKLCHoklch(43.44% 0.187 312.7)
XYZxyz(13.2267, 6.8922, 30.3333)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F98 #44981F
analogous
#361F98 #731F98 #981F80
triadic
#731F98 #98731F #1F9873
tetradic
#731F98 #98361F #44981F #1F8098
square
#731F98 #98361F #44981F #1F8098
split-complementary
#731F98 #80981F #1F9836
monochromatic
#260A32 #4D1565 #731F98 #9929CB #B355DC

Accessibility & contrast

On white

8.83
#731F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#731F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F98
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F98#FFFFFF#000000##FFFFFF
##731F981.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#0A4C96
Tritanopia (blue-blind)
#6F3C5B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731f98;
/* rgb */ color: rgb(115, 31, 152);
/* oklch */ color: oklch(43.4% 0.187 312.7);
Tailwind
colors: {
  custom: {
    50: '#a065b7',
    500: '#731f98',
    950: '#000000',
  },
}
SCSS
$custom: #731f98;
$custom-light: #a065b7;
$custom-dark: #000000;
JSON
{
  "hex": "#731f98",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 281.653,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43437,
    "c": 0.18718,
    "h": 312.7
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#731F98
secondary
#74C053
accent
#E93F73
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731F98

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

Preview Lab → · Contrast checker → · Palette generator →

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