#7231BA#7231BA

#7231BA is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.201 H 300.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7231BA
RGBrgb(114, 49, 186)
HSLhsl(268, 58%, 46%)
HSVhsv(268, 74%, 73%)
CMYKcmyk(38.7%, 73.7%, 0%, 27.1%)
CIE-LABlab(36.59, 54.46, -60.85)
CIE-LCHlch(36.59, 81.67, 311.83°)
OKLaboklab(47.78% 0.102 -0.1737)
OKLCHoklch(47.78% 0.201 300.4)
XYZxyz(16.8985, 9.3191, 47.3533)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231BA #79BA31
analogous
#3134BA #7231BA #B631BA
triadic
#7231BA #BA7231 #31BA72
tetradic
#7231BA #BA3134 #79BA31 #31BAB6
square
#7231BA #BA3134 #79BA31 #31BAB6
split-complementary
#7231BA #BAB631 #34BA31
monochromatic
#371759 #54248A #7231BA #9156D2 #B086DF

Accessibility & contrast

On white

7.33
#7231BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7231BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231BA
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231BA#FFFFFF#000000##FFFFFF
##7231BA1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0055B7
Tritanopia (blue-blind)
#625473
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7231ba;
/* rgb */ color: rgb(114, 49, 186);
/* oklch */ color: oklch(47.8% 0.201 300.4);
Tailwind
colors: {
  custom: {
    50: '#a16fd0',
    500: '#7231ba',
    950: '#000000',
  },
}
SCSS
$custom: #7231ba;
$custom-light: #a16fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7231ba",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 268.467,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47779,
    "c": 0.20145,
    "h": 300.4
  },
  "luminance": 0.09319
}

Semantic roles & 50–950 ramp

primary
#7231BA
secondary
#A5C97E
accent
#E24698
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7231BA

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

Preview Lab → · Contrast checker → · Palette generator →

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