#7231A4#7231A4

#7231A4 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.178 H 306.5°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7231A4
RGBrgb(114, 49, 164)
HSLhsl(274, 54%, 42%)
HSVhsv(274, 70%, 64%)
CMYKcmyk(30.5%, 70.1%, 0%, 35.7%)
CIE-LABlab(34.91, 49.16, -50.48)
CIE-LCHlch(34.91, 70.47, 314.24°)
OKLaboklab(46.06% 0.1059 -0.1432)
OKLCHoklch(46.06% 0.178 306.5)
XYZxyz(14.7371, 8.4545, 35.9703)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231A4 #63A431
analogous
#3831A4 #7231A4 #A4319D
triadic
#7231A4 #A47231 #31A472
tetradic
#7231A4 #A43831 #63A431 #319DA4
square
#7231A4 #A43831 #63A431 #319DA4
split-complementary
#7231A4 #9DA431 #31A438
monochromatic
#301546 #512375 #7231A4 #9149C9 #AE79D7

Accessibility & contrast

On white

7.80
#7231A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7231A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231A4
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231A4#FFFFFF#000000##FFFFFF
##7231A41.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0C52A2
Tritanopia (blue-blind)
#694B67
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7231a4;
/* rgb */ color: rgb(114, 49, 164);
/* oklch */ color: oklch(46.1% 0.178 306.5);
Tailwind
colors: {
  custom: {
    50: '#9f6ec0',
    500: '#7231a4',
    950: '#000000',
  },
}
SCSS
$custom: #7231a4;
$custom-light: #9f6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7231a4",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 273.913,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46061,
    "c": 0.17812,
    "h": 306.5
  },
  "luminance": 0.08454
}

Semantic roles & 50–950 ramp

primary
#7231A4
secondary
#93BF72
accent
#DD4A8A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7231A4

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

Preview Lab → · Contrast checker → · Palette generator →

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