#6231AE#6231AE

#6231AE is a dark, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.186 H 295.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#6231AE
RGBrgb(98, 49, 174)
HSLhsl(264, 56%, 44%)
HSVhsv(264, 72%, 68%)
CMYKcmyk(43.7%, 71.8%, 0%, 31.8%)
CIE-LABlab(33.67, 48.55, -58.59)
CIE-LCHlch(33.67, 76.09, 309.65°)
OKLaboklab(44.97% 0.0814 -0.1676)
OKLCHoklch(44.97% 0.186 295.9)
XYZxyz(13.7733, 7.8490, 40.8255)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231AE #7DAE31
analogous
#313EAE #6231AE #A031AE
triadic
#6231AE #AE6231 #31AE62
tetradic
#6231AE #AE313E #7DAE31 #31AEA0
square
#6231AE #AE313E #7DAE31 #31AEA0
split-complementary
#6231AE #AEA031 #3EAE31
monochromatic
#2C164E #47247E #6231AE #804FCD #A37FDB

Accessibility & contrast

On white

8.17
#6231AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6231AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231AE
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231AE#FFFFFF#000000##FFFFFF
##6231AE1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#4E516C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6231ae;
/* rgb */ color: rgb(98, 49, 174);
/* oklch */ color: oklch(45.0% 0.186 295.9);
Tailwind
colors: {
  custom: {
    50: '#956dc7',
    500: '#6231ae',
    950: '#000000',
  },
}
SCSS
$custom: #6231ae;
$custom-light: #956dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#6231ae",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 263.52,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44972,
    "c": 0.18632,
    "h": 295.9
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

primary
#6231AE
secondary
#A6C477
accent
#DF48A4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6231AE

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

Preview Lab → · Contrast checker → · Palette generator →

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