#6231BA#6231BA

#6231BA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.200 H 293.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#6231BA
RGBrgb(98, 49, 186)
HSLhsl(261, 58%, 46%)
HSVhsv(261, 74%, 73%)
CMYKcmyk(47.3%, 73.7%, 0%, 27.1%)
CIE-LABlab(34.68, 51.74, -64.06)
CIE-LCHlch(34.68, 82.34, 308.93°)
OKLaboklab(46% 0.0787 -0.1837)
OKLCHoklch(46% 0.2 293.2)
XYZxyz(14.9958, 8.3380, 47.2641)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231BA #89BA31
analogous
#3144BA #6231BA #A631BA
triadic
#6231BA #BA6231 #31BA62
tetradic
#6231BA #BA3144 #89BA31 #31BAA6
square
#6231BA #BA3144 #89BA31 #31BAA6
split-complementary
#6231BA #BAA631 #44BA31
monochromatic
#2F1759 #48248A #6231BA #8256D2 #A686DF

Accessibility & contrast

On white

7.87
#6231BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6231BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231BA
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231BA#FFFFFF#000000##FFFFFF
##6231BA1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#475573
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6231ba;
/* rgb */ color: rgb(98, 49, 186);
/* oklch */ color: oklch(46.0% 0.200 293.2);
Tailwind
colors: {
  custom: {
    50: '#976ed0',
    500: '#6231ba',
    950: '#000000',
  },
}
SCSS
$custom: #6231ba;
$custom-light: #976ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#6231ba",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 261.46,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46,
    "c": 0.19985,
    "h": 293.2
  },
  "luminance": 0.08338
}

Semantic roles & 50–950 ramp

primary
#6231BA
secondary
#AEC97E
accent
#E246AA
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #6231BA

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

Preview Lab → · Contrast checker → · Palette generator →

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