#7312A1#7312A1

#7312A1 is a dark, highly saturated purple. Relative luminance 0.067; OKLCH L 43.3% C 0.206 H 310.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7312A1
RGBrgb(115, 18, 161)
HSLhsl(281, 80%, 35%)
HSVhsv(281, 89%, 63%)
CMYKcmyk(28.6%, 88.8%, 0%, 36.9%)
CIE-LABlab(31.00, 59.69, -55.02)
CIE-LCHlch(31.00, 81.18, 317.34°)
OKLaboklab(43.27% 0.1335 -0.1563)
OKLCHoklch(43.27% 0.206 310.5)
XYZxyz(13.7183, 6.6510, 34.2724)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7312A1 #40A112
analogous
#2B12A1 #7312A1 #A11288
triadic
#7312A1 #A17312 #12A173
tetradic
#7312A1 #A12B12 #40A112 #1288A1
square
#7312A1 #A12B12 #40A112 #1288A1
split-complementary
#7312A1 #88A112 #12A12B
monochromatic
#240633 #4C0C6A #7312A1 #9A18D8 #B443EA

Accessibility & contrast

On white

9.01
#7312A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7312A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7312A1
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7312A1#FFFFFF#000000##FFFFFF
##7312A11.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#004A9E
Tritanopia (blue-blind)
#6C3C5F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7312a1;
/* rgb */ color: rgb(115, 18, 161);
/* oklch */ color: oklch(43.3% 0.206 310.5);
Tailwind
colors: {
  custom: {
    50: '#a161be',
    500: '#7312a1',
    950: '#000000',
  },
}
SCSS
$custom: #7312a1;
$custom-light: #a161be;
$custom-dark: #000000;
JSON
{
  "hex": "#7312a1",
  "rgb": {
    "r": 115,
    "g": 18,
    "b": 161
  },
  "hsl": {
    "h": 280.699,
    "s": 79.888,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43269,
    "c": 0.20554,
    "h": 310.5
  },
  "luminance": 0.06651
}

Semantic roles & 50–950 ramp

primary
#7312A1
secondary
#70CA45
accent
#F63171
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7312A1

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

Preview Lab → · Contrast checker → · Palette generator →

#7312A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva