#7317B4#7317B4

#7317B4 is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.2% C 0.219 H 304.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7317B4
RGBrgb(115, 23, 180)
HSLhsl(275, 77%, 40%)
HSVhsv(275, 87%, 71%)
CMYKcmyk(36.1%, 87.2%, 0%, 29.4%)
CIE-LABlab(33.03, 62.48, -63.10)
CIE-LCHlch(33.03, 88.80, 314.71°)
OKLaboklab(45.17% 0.1245 -0.1801)
OKLCHoklch(45.17% 0.219 304.7)
XYZxyz(15.6129, 7.5530, 43.8065)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7317B4 #58B417
analogous
#2417B4 #7317B4 #B417A7
triadic
#7317B4 #B47317 #17B473
tetradic
#7317B4 #B42417 #58B417 #17A7B4
square
#7317B4 #B42417 #58B417 #17A7B4
split-complementary
#7317B4 #A7B417 #17B424
monochromatic
#2E0947 #50107E #7317B4 #9425E3 #AF5BEA

Accessibility & contrast

On white

8.36
#7317B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7317B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7317B4
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7317B4#FFFFFF#000000##FFFFFF
##7317B41.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#66466A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7317b4;
/* rgb */ color: rgb(115, 23, 180);
/* oklch */ color: oklch(45.2% 0.219 304.7);
Tailwind
colors: {
  custom: {
    50: '#a264cc',
    500: '#7317b4',
    950: '#000000',
  },
}
SCSS
$custom: #7317b4;
$custom-light: #a264cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7317b4",
  "rgb": {
    "r": 115,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 275.159,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45173,
    "c": 0.21895,
    "h": 304.7
  },
  "luminance": 0.07553
}

Semantic roles & 50–950 ramp

primary
#7317B4
secondary
#89CE59
accent
#F43483
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7317B4

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

Preview Lab → · Contrast checker → · Palette generator →

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