#7231AC#7231AC

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

Color values

HEX#7231AC
RGBrgb(114, 49, 172)
HSLhsl(272, 56%, 43%)
HSVhsv(272, 72%, 67%)
CMYKcmyk(33.7%, 71.5%, 0%, 32.5%)
CIE-LABlab(35.50, 51.07, -54.32)
CIE-LCHlch(35.50, 74.55, 313.24°)
OKLaboklab(46.67% 0.1047 -0.1545)
OKLCHoklch(46.67% 0.187 304.1)
XYZxyz(15.4824, 8.7526, 39.8955)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231AC #6BAC31
analogous
#3431AC #7231AC #AC31A8
triadic
#7231AC #AC7231 #31AC72
tetradic
#7231AC #AC3431 #6BAC31 #31A8AC
square
#7231AC #AC3431 #6BAC31 #31A8AC
split-complementary
#7231AC #A8AC31 #31AC34
monochromatic
#33164D #52237C #7231AC #914ECC #AE7DDA

Accessibility & contrast

On white

7.63
#7231AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7231AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231AC
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231AC#FFFFFF#000000##FFFFFF
##7231AC1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#674E6B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7231ac;
/* rgb */ color: rgb(114, 49, 172);
/* oklch */ color: oklch(46.7% 0.187 304.1);
Tailwind
colors: {
  custom: {
    50: '#a06fc6',
    500: '#7231ac',
    950: '#000000',
  },
}
SCSS
$custom: #7231ac;
$custom-light: #a06fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7231ac",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 271.707,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46669,
    "c": 0.18663,
    "h": 304.1
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7231AC

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

Preview Lab → · Contrast checker → · Palette generator →

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