#7231A5#7231A5

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

Color values

HEX#7231A5
RGBrgb(114, 49, 165)
HSLhsl(274, 54%, 42%)
HSVhsv(274, 70%, 65%)
CMYKcmyk(30.9%, 70.3%, 0%, 35.3%)
CIE-LABlab(34.98, 49.40, -50.96)
CIE-LCHlch(34.98, 70.98, 314.11°)
OKLaboklab(46.14% 0.1058 -0.1446)
OKLCHoklch(46.14% 0.179 306.2)
XYZxyz(14.8278, 8.4908, 36.4478)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231A5 #64A531
analogous
#3831A5 #7231A5 #A5319E
triadic
#7231A5 #A57231 #31A572
tetradic
#7231A5 #A53831 #64A531 #319EA5
square
#7231A5 #A53831 #64A531 #319EA5
split-complementary
#7231A5 #9EA531 #31A538
monochromatic
#311547 #512376 #7231A5 #914AC9 #AE79D7

Accessibility & contrast

On white

7.78
#7231A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7231A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231A5
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231A5#FFFFFF#000000##FFFFFF
##7231A51.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0853A3
Tritanopia (blue-blind)
#694B67
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7231a5;
/* rgb */ color: rgb(114, 49, 165);
/* oklch */ color: oklch(46.1% 0.179 306.2);
Tailwind
colors: {
  custom: {
    50: '#9f6ec0',
    500: '#7231a5',
    950: '#000000',
  },
}
SCSS
$custom: #7231a5;
$custom-light: #9f6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7231a5",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 273.621,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.1792,
    "h": 306.2
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#7231A5
secondary
#94C072
accent
#DE4A8B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7231A5

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

Preview Lab → · Contrast checker → · Palette generator →

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