#731F7F#731F7F

#731F7F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.6% C 0.165 H 322.4°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#731F7F
RGBrgb(115, 31, 127)
HSLhsl(293, 61%, 31%)
HSVhsv(293, 76%, 50%)
CMYKcmyk(9.4%, 75.6%, 0%, 50.2%)
CIE-LABlab(29.81, 49.07, -35.95)
CIE-LCHlch(29.81, 60.83, 323.77°)
OKLaboklab(41.64% 0.1303 -0.1005)
OKLCHoklch(41.64% 0.165 322.4)
XYZxyz(11.3906, 6.1578, 20.6632)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F7F #2B7F1F
analogous
#431F7F #731F7F #7F1F5B
triadic
#731F7F #7F731F #1F7F73
tetradic
#731F7F #7F431F #2B7F1F #1F5B7F
square
#731F7F #7F431F #2B7F1F #1F5B7F
split-complementary
#731F7F #5B7F1F #1F7F43
monochromatic
#1A071D #46134E #731F7F #A02BB0 #C146D2

Accessibility & contrast

On white

9.41
#731F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#731F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F7F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F7F#FFFFFF#000000##FFFFFF
##731F7F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#2D497D
Tritanopia (blue-blind)
#74314D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #731f7f;
/* rgb */ color: rgb(115, 31, 127);
/* oklch */ color: oklch(41.6% 0.165 322.4);
Tailwind
colors: {
  custom: {
    50: '#9f64a5',
    500: '#731f7f',
    950: '#000000',
  },
}
SCSS
$custom: #731f7f;
$custom-light: #9f64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#731f7f",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 292.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.4164,
    "c": 0.16455,
    "h": 322.4
  },
  "luminance": 0.06157
}

Semantic roles & 50–950 ramp

primary
#731F7F
secondary
#55B248
accent
#E44458
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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