#7231AD#7231AD

#7231AD is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.188 H 303.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7231AD
RGBrgb(114, 49, 173)
HSLhsl(271, 56%, 44%)
HSVhsv(271, 72%, 68%)
CMYKcmyk(34.1%, 71.7%, 0%, 32.2%)
CIE-LABlab(35.58, 51.31, -54.79)
CIE-LCHlch(35.58, 75.06, 313.12°)
OKLaboklab(46.75% 0.1045 -0.1559)
OKLCHoklch(46.75% 0.188 303.8)
XYZxyz(15.5788, 8.7912, 40.4032)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231AD #6CAD31
analogous
#3431AD #7231AD #AD31AA
triadic
#7231AD #AD7231 #31AD72
tetradic
#7231AD #AD3431 #6CAD31 #31AAAD
square
#7231AD #AD3431 #6CAD31 #31AAAD
split-complementary
#7231AD #AAAD31 #31AD34
monochromatic
#33164E #53237D #7231AD #914ECD #AE7EDA

Accessibility & contrast

On white

7.61
#7231AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7231AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231AD
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231AD#FFFFFF#000000##FFFFFF
##7231AD1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#664E6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7231ad;
/* rgb */ color: rgb(114, 49, 173);
/* oklch */ color: oklch(46.7% 0.188 303.8);
Tailwind
colors: {
  custom: {
    50: '#a06fc6',
    500: '#7231ad',
    950: '#000000',
  },
}
SCSS
$custom: #7231ad;
$custom-light: #a06fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7231ad",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 271.452,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46746,
    "c": 0.18769,
    "h": 303.8
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#7231AD
secondary
#9BC377
accent
#DF4990
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7231AD

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

Preview Lab → · Contrast checker → · Palette generator →

#7231AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva