#731BB3#731BB3

#731BB3 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.3% C 0.215 H 304.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#731BB3
RGBrgb(115, 27, 179)
HSLhsl(275, 74%, 40%)
HSVhsv(275, 85%, 70%)
CMYKcmyk(35.8%, 84.9%, 0%, 29.8%)
CIE-LABlab(33.31, 61.18, -62.05)
CIE-LCHlch(33.31, 87.14, 314.59°)
OKLaboklab(45.34% 0.1225 -0.177)
OKLCHoklch(45.34% 0.215 304.7)
XYZxyz(15.5970, 7.6834, 43.3005)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731BB3 #5BB31B
analogous
#271BB3 #731BB3 #B31BA7
triadic
#731BB3 #B3731B #1BB373
tetradic
#731BB3 #B3271B #5BB31B #1BA7B3
square
#731BB3 #B3271B #5BB31B #1BA7B3
split-complementary
#731BB3 #A7B31B #1BB327
monochromatic
#2F0B49 #51137E #731BB3 #942CDF #AF61E7

Accessibility & contrast

On white

8.28
#731BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#731BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731BB3
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731BB3#FFFFFF#000000##FFFFFF
##731BB31.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#66476A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #731bb3;
/* rgb */ color: rgb(115, 27, 179);
/* oklch */ color: oklch(45.3% 0.215 304.7);
Tailwind
colors: {
  custom: {
    50: '#a265cb',
    500: '#731bb3',
    950: '#000000',
  },
}
SCSS
$custom: #731bb3;
$custom-light: #a265cb;
$custom-dark: #000000;
JSON
{
  "hex": "#731bb3",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 179
  },
  "hsl": {
    "h": 274.737,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4534,
    "c": 0.21531,
    "h": 304.7
  },
  "luminance": 0.07683
}

Semantic roles & 50–950 ramp

primary
#731BB3
secondary
#8CCC5E
accent
#F03785
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #731BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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