#7312E2#7312E2

#7312E2 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 49.2% C 0.263 H 294.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7312E2
RGBrgb(115, 18, 226)
HSLhsl(268, 85%, 48%)
HSVhsv(268, 92%, 89%)
CMYKcmyk(49.1%, 92%, 0%, 11.4%)
CIE-LABlab(37.06, 73.63, -83.31)
CIE-LCHlch(37.06, 111.19, 311.47°)
OKLaboklab(49.23% 0.1082 -0.2392)
OKLCHoklch(49.23% 0.263 294.3)
XYZxyz(21.0102, 9.5678, 72.6765)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7312E2 #81E212
analogous
#1219E2 #7312E2 #DB12E2
triadic
#7312E2 #E27312 #12E273
tetradic
#7312E2 #E21219 #81E212 #12E2DB
square
#7312E2 #E21219 #81E212 #12E2DB
split-complementary
#7312E2 #E2DB12 #19E212
monochromatic
#390971 #560DA9 #7312E2 #9341F0 #B37AF4

Accessibility & contrast

On white

7.21
#7312E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7312E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7312E2
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7312E2#FFFFFF#000000##FFFFFF
##7312E21.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E7
Deuteranopia (green-blind)
#0054DF
Tritanopia (blue-blind)
#4F5B85
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7312e2;
/* rgb */ color: rgb(115, 18, 226);
/* oklch */ color: oklch(49.2% 0.263 294.3);
Tailwind
colors: {
  custom: {
    50: '#a766ed',
    500: '#7312e2',
    950: '#000000',
  },
}
SCSS
$custom: #7312e2;
$custom-light: #a766ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7312e2",
  "rgb": {
    "r": 115,
    "g": 18,
    "b": 226
  },
  "hsl": {
    "h": 267.981,
    "s": 85.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49228,
    "c": 0.26254,
    "h": 294.3
  },
  "luminance": 0.09568
}

Semantic roles & 50–950 ramp

primary
#7312E2
secondary
#ABDC74
accent
#FB2C9B
background
#FBF6FE
surface
#F6EBFD
border
#D0C6D5
text
#110716
muted
#807A84

Preview Lab

Preview with #7312E2

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

Preview Lab → · Contrast checker → · Palette generator →

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