#6B309F#6B309F

#6B309F is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.172 H 304.6°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#6B309F
RGBrgb(107, 48, 159)
HSLhsl(272, 54%, 41%)
HSVhsv(272, 70%, 62%)
CMYKcmyk(32.7%, 69.8%, 0%, 37.6%)
CIE-LABlab(33.44, 46.97, -49.89)
CIE-LCHlch(33.44, 68.52, 313.28°)
OKLaboklab(44.69% 0.0979 -0.1417)
OKLCHoklch(44.69% 0.172 304.6)
XYZxyz(13.3770, 7.7430, 33.5840)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B309F #649F30
analogous
#34309F #6B309F #9F309B
triadic
#6B309F #9F6B30 #309F6B
tetradic
#6B309F #9F3430 #649F30 #309B9F
square
#6B309F #9F3430 #649F30 #309B9F
split-complementary
#6B309F #9B9F30 #309F34
monochromatic
#2C1441 #4B2270 #6B309F #8A45C7 #A874D5

Accessibility & contrast

On white

8.24
#6B309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B309F
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B309F#FFFFFF#000000##FFFFFF
##6B309F1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#014F9D
Tritanopia (blue-blind)
#614964
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6b309f;
/* rgb */ color: rgb(107, 48, 159);
/* oklch */ color: oklch(44.7% 0.172 304.6);
Tailwind
colors: {
  custom: {
    50: '#9a6dbc',
    500: '#6b309f',
    950: '#000000',
  },
}
SCSS
$custom: #6b309f;
$custom-light: #9a6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#6b309f",
  "rgb": {
    "r": 107,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 271.892,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44694,
    "c": 0.17225,
    "h": 304.6
  },
  "luminance": 0.07743
}

Semantic roles & 50–950 ramp

primary
#6B309F
secondary
#93BD6E
accent
#DD4B8F
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6B309F

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

Preview Lab → · Contrast checker → · Palette generator →

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