#7331AC#7331AC

#7331AC is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.187 H 304.6°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7331AC
RGBrgb(115, 49, 172)
HSLhsl(272, 56%, 43%)
HSVhsv(272, 72%, 67%)
CMYKcmyk(33.1%, 71.5%, 0%, 32.5%)
CIE-LABlab(35.64, 51.27, -54.10)
CIE-LCHlch(35.64, 74.53, 313.46°)
OKLaboklab(46.79% 0.1061 -0.1538)
OKLCHoklch(46.79% 0.187 304.6)
XYZxyz(15.6133, 8.8201, 39.9016)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331AC #6AAC31
analogous
#3531AC #7331AC #AC31A7
triadic
#7331AC #AC7331 #31AC73
tetradic
#7331AC #AC3531 #6AAC31 #31A7AC
square
#7331AC #AC3531 #6AAC31 #31A7AC
split-complementary
#7331AC #A7AC31 #31AC35
monochromatic
#33164D #53237C #7331AC #924ECC #AF7DDA

Accessibility & contrast

On white

7.60
#7331AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7331AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331AC
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331AC#FFFFFF#000000##FFFFFF
##7331AC1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#684E6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7331ac;
/* rgb */ color: rgb(115, 49, 172);
/* oklch */ color: oklch(46.8% 0.187 304.6);
Tailwind
colors: {
  custom: {
    50: '#a06fc6',
    500: '#7331ac',
    950: '#000000',
  },
}
SCSS
$custom: #7331ac;
$custom-light: #a06fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7331ac",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 272.195,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46791,
    "c": 0.18686,
    "h": 304.6
  },
  "luminance": 0.0882
}

Semantic roles & 50–950 ramp

primary
#7331AC
secondary
#9AC376
accent
#DF498E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7331AC

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

Preview Lab → · Contrast checker → · Palette generator →

#7331AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva