#6B31AF#6B31AF

#6B31AF is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.189 H 300.0°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#6B31AF
RGBrgb(107, 49, 175)
HSLhsl(268, 56%, 44%)
HSVhsv(268, 72%, 69%)
CMYKcmyk(38.9%, 72%, 0%, 31.4%)
CIE-LABlab(34.84, 50.46, -57.23)
CIE-LCHlch(34.84, 76.30, 311.40°)
OKLaboklab(46.07% 0.0942 -0.1633)
OKLCHoklch(46.07% 0.189 300)
XYZxyz(14.8977, 8.4174, 41.3890)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B31AF #75AF31
analogous
#3136AF #6B31AF #AA31AF
triadic
#6B31AF #AF6B31 #31AF6B
tetradic
#6B31AF #AF3136 #75AF31 #31AFAA
square
#6B31AF #AF3136 #75AF31 #31AFAA
split-complementary
#6B31AF #AFAA31 #36AF31
monochromatic
#31164F #4E247F #6B31AF #8A4FCE #AA7FDB

Accessibility & contrast

On white

7.83
#6B31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6B31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B31AF
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B31AF#FFFFFF#000000##FFFFFF
##6B31AF1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#5B506D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6b31af;
/* rgb */ color: rgb(107, 49, 175);
/* oklch */ color: oklch(46.1% 0.189 300.0);
Tailwind
colors: {
  custom: {
    50: '#9b6ec8',
    500: '#6b31af',
    950: '#000000',
  },
}
SCSS
$custom: #6b31af;
$custom-light: #9b6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#6b31af",
  "rgb": {
    "r": 107,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 267.619,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46072,
    "c": 0.18854,
    "h": 300
  },
  "luminance": 0.08418
}

Semantic roles & 50–950 ramp

primary
#6B31AF
secondary
#A1C478
accent
#E0489A
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B31AF

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

Preview Lab → · Contrast checker → · Palette generator →

#6B31AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva