#7318B3#7318B3

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

Color values

HEX#7318B3
RGBrgb(115, 24, 179)
HSLhsl(275, 76%, 40%)
HSVhsv(275, 87%, 70%)
CMYKcmyk(35.8%, 86.6%, 0%, 29.8%)
CIE-LABlab(33.03, 62.00, -62.51)
CIE-LCHlch(33.03, 88.05, 314.77°)
OKLaboklab(45.15% 0.1243 -0.1784)
OKLCHoklch(45.15% 0.217 304.9)
XYZxyz(15.5317, 7.5529, 43.2787)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7318B3 #58B318
analogous
#2618B3 #7318B3 #B318A6
triadic
#7318B3 #B37318 #18B373
tetradic
#7318B3 #B32618 #58B318 #18A6B3
square
#7318B3 #B32618 #58B318 #18A6B3
split-complementary
#7318B3 #A6B318 #18B326
monochromatic
#2E0A47 #50117D #7318B3 #9426E2 #AF5CE9

Accessibility & contrast

On white

8.36
#7318B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7318B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7318B3
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7318B3#FFFFFF#000000##FFFFFF
##7318B31.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)
#004CB7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#66466A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7318b3;
/* rgb */ color: rgb(115, 24, 179);
/* oklch */ color: oklch(45.1% 0.217 304.9);
Tailwind
colors: {
  custom: {
    50: '#a264cb',
    500: '#7318b3',
    950: '#000000',
  },
}
SCSS
$custom: #7318b3;
$custom-light: #a264cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7318b3",
  "rgb": {
    "r": 115,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 275.226,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45146,
    "c": 0.21741,
    "h": 304.9
  },
  "luminance": 0.07553
}

Semantic roles & 50–950 ramp

primary
#7318B3
secondary
#89CD5A
accent
#F33583
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7318B3

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

Preview Lab → · Contrast checker → · Palette generator →

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