#7231A6#7231A6

#7231A6 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.180 H 305.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7231A6
RGBrgb(114, 49, 166)
HSLhsl(273, 54%, 42%)
HSVhsv(273, 70%, 65%)
CMYKcmyk(31.3%, 70.5%, 0%, 34.9%)
CIE-LABlab(35.06, 49.64, -51.45)
CIE-LCHlch(35.06, 71.49, 313.98°)
OKLaboklab(46.21% 0.1056 -0.1461)
OKLCHoklch(46.21% 0.18 305.9)
XYZxyz(14.9192, 8.5273, 36.9290)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231A6 #65A631
analogous
#3731A6 #7231A6 #A631A0
triadic
#7231A6 #A67231 #31A672
tetradic
#7231A6 #A63731 #65A631 #31A0A6
square
#7231A6 #A63731 #65A631 #31A0A6
split-complementary
#7231A6 #A0A631 #31A637
monochromatic
#311547 #522377 #7231A6 #914ACA #AE7AD8

Accessibility & contrast

On white

7.76
#7231A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7231A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231A6
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231A6#FFFFFF#000000##FFFFFF
##7231A61.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0453A4
Tritanopia (blue-blind)
#694C68
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7231a6;
/* rgb */ color: rgb(114, 49, 166);
/* oklch */ color: oklch(46.2% 0.180 305.9);
Tailwind
colors: {
  custom: {
    50: '#9f6ec1',
    500: '#7231a6',
    950: '#000000',
  },
}
SCSS
$custom: #7231a6;
$custom-light: #9f6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#7231a6",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 273.333,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46211,
    "c": 0.18025,
    "h": 305.9
  },
  "luminance": 0.08527
}

Semantic roles & 50–950 ramp

primary
#7231A6
secondary
#95C073
accent
#DE4A8C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7231A6

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

Preview Lab → · Contrast checker → · Palette generator →

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