#731FA8#731FA8

#731FA8 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.7% C 0.202 H 307.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#731FA8
RGBrgb(115, 31, 168)
HSLhsl(277, 69%, 39%)
HSVhsv(277, 82%, 66%)
CMYKcmyk(31.5%, 81.5%, 0%, 34.1%)
CIE-LABlab(32.81, 57.53, -56.28)
CIE-LCHlch(32.81, 80.48, 315.63°)
OKLaboklab(44.71% 0.1231 -0.1601)
OKLCHoklch(44.71% 0.202 307.5)
XYZxyz(14.6266, 7.4522, 37.7061)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731FA8 #54A81F
analogous
#2E1FA8 #731FA8 #A81F99
triadic
#731FA8 #A8731F #1FA873
tetradic
#731FA8 #A82E1F #54A81F #1F99A8
square
#731FA8 #A82E1F #54A81F #1F99A8
split-complementary
#731FA8 #99A81F #1FA82E
monochromatic
#2C0C41 #501574 #731FA8 #962CD8 #AF60E2

Accessibility & contrast

On white

8.43
#731FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#731FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731FA8
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731FA8#FFFFFF#000000##FFFFFF
##731FA81.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#6A4465
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #731fa8;
/* rgb */ color: rgb(115, 31, 168);
/* oklch */ color: oklch(44.7% 0.202 307.5);
Tailwind
colors: {
  custom: {
    50: '#a166c3',
    500: '#731fa8',
    950: '#000000',
  },
}
SCSS
$custom: #731fa8;
$custom-light: #a166c3;
$custom-dark: #000000;
JSON
{
  "hex": "#731fa8",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 276.788,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44707,
    "c": 0.20197,
    "h": 307.5
  },
  "luminance": 0.07452
}

Semantic roles & 50–950 ramp

primary
#731FA8
secondary
#85C65D
accent
#EC3C80
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #731FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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