#6B319D#6B319D

#6B319D is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.169 H 305.1°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#6B319D
RGBrgb(107, 49, 157)
HSLhsl(272, 52%, 40%)
HSVhsv(272, 69%, 62%)
CMYKcmyk(31.8%, 68.8%, 0%, 38.4%)
CIE-LABlab(33.47, 45.99, -48.63)
CIE-LCHlch(33.47, 66.93, 313.41°)
OKLaboklab(44.67% 0.0971 -0.138)
OKLCHoklch(44.67% 0.169 305.1)
XYZxyz(13.2462, 7.7568, 32.6911)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B319D #639D31
analogous
#35319D #6B319D #9D3199
triadic
#6B319D #9D6B31 #319D6B
tetradic
#6B319D #9D3531 #639D31 #31999D
square
#6B319D #9D3531 #639D31 #31999D
split-complementary
#6B319D #999D31 #319D35
monochromatic
#2B1440 #4B226E #6B319D #8A46C5 #A875D4

Accessibility & contrast

On white

8.23
#6B319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6B319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B319D
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B319D#FFFFFF#000000##FFFFFF
##6B319D1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#0C4F9B
Tritanopia (blue-blind)
#624963
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6b319d;
/* rgb */ color: rgb(107, 49, 157);
/* oklch */ color: oklch(44.7% 0.169 305.1);
Tailwind
colors: {
  custom: {
    50: '#9a6dbb',
    500: '#6b319d',
    950: '#000000',
  },
}
SCSS
$custom: #6b319d;
$custom-light: #9a6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#6b319d",
  "rgb": {
    "r": 107,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 272.222,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44669,
    "c": 0.16874,
    "h": 305.1
  },
  "luminance": 0.07757
}

Semantic roles & 50–950 ramp

primary
#6B319D
secondary
#92BC6E
accent
#DC4C8F
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6B319D

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

Preview Lab → · Contrast checker → · Palette generator →

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