#7231AE#7231AE

#7231AE is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.189 H 303.6°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7231AE
RGBrgb(114, 49, 174)
HSLhsl(271, 56%, 44%)
HSVhsv(271, 72%, 68%)
CMYKcmyk(34.5%, 71.8%, 0%, 31.8%)
CIE-LABlab(35.65, 51.55, -55.26)
CIE-LCHlch(35.65, 75.57, 313.01°)
OKLaboklab(46.82% 0.1044 -0.1573)
OKLCHoklch(46.82% 0.189 303.6)
XYZxyz(15.6760, 8.8300, 40.9147)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231AE #6DAE31
analogous
#3331AE #7231AE #AE31AB
triadic
#7231AE #AE7231 #31AE72
tetradic
#7231AE #AE3331 #6DAE31 #31ABAE
square
#7231AE #AE3331 #6DAE31 #31ABAE
split-complementary
#7231AE #ABAE31 #31AE33
monochromatic
#33164E #53247E #7231AE #914FCD #AF7FDB

Accessibility & contrast

On white

7.59
#7231AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7231AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231AE
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231AE#FFFFFF#000000##FFFFFF
##7231AE1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#664F6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7231ae;
/* rgb */ color: rgb(114, 49, 174);
/* oklch */ color: oklch(46.8% 0.189 303.6);
Tailwind
colors: {
  custom: {
    50: '#a06fc7',
    500: '#7231ae',
    950: '#000000',
  },
}
SCSS
$custom: #7231ae;
$custom-light: #a06fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7231ae",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 271.2,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46824,
    "c": 0.18876,
    "h": 303.6
  },
  "luminance": 0.0883
}

Semantic roles & 50–950 ramp

primary
#7231AE
secondary
#9CC477
accent
#DF4891
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7231AE

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

Preview Lab → · Contrast checker → · Palette generator →

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