#7317B3#7317B3

#7317B3 is a mid, highly saturated violet. Relative luminance 0.075; OKLCH L 45.1% C 0.218 H 304.9°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#7317B3
RGBrgb(115, 23, 179)
HSLhsl(275, 77%, 40%)
HSVhsv(275, 87%, 70%)
CMYKcmyk(35.8%, 87.2%, 0%, 29.8%)
CIE-LABlab(32.95, 62.26, -62.65)
CIE-LCHlch(32.95, 88.33, 314.82°)
OKLaboklab(45.09% 0.1249 -0.1788)
OKLCHoklch(45.09% 0.218 304.9)
XYZxyz(15.5114, 7.5124, 43.2719)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7317B3 #57B317
analogous
#2517B3 #7317B3 #B317A5
triadic
#7317B3 #B37317 #17B373
tetradic
#7317B3 #B32517 #57B317 #17A5B3
square
#7317B3 #B32517 #57B317 #17A5B3
split-complementary
#7317B3 #A5B317 #17B325
monochromatic
#2D0947 #50107D #7317B3 #9524E3 #AF5BEA

Accessibility & contrast

On white

8.39
#7317B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7317B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7317B3
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7317B3#FFFFFF#000000##FFFFFF
##7317B31.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#66466A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7317b3;
/* rgb */ color: rgb(115, 23, 179);
/* oklch */ color: oklch(45.1% 0.218 304.9);
Tailwind
colors: {
  custom: {
    50: '#a264cb',
    500: '#7317b3',
    950: '#000000',
  },
}
SCSS
$custom: #7317b3;
$custom-light: #a264cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7317b3",
  "rgb": {
    "r": 115,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 275.385,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45086,
    "c": 0.21806,
    "h": 304.9
  },
  "luminance": 0.07512
}

Semantic roles & 50–950 ramp

primary
#7317B3
secondary
#88CD58
accent
#F43483
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7317B3

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

Preview Lab → · Contrast checker → · Palette generator →

#7317B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva