#6A309F#6A309F

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

Color values

HEX#6A309F
RGBrgb(106, 48, 159)
HSLhsl(271, 54%, 41%)
HSVhsv(271, 70%, 62%)
CMYKcmyk(33.3%, 69.8%, 0%, 37.6%)
CIE-LABlab(33.31, 46.76, -50.11)
CIE-LCHlch(33.31, 68.54, 313.02°)
OKLaboklab(44.57% 0.0965 -0.1424)
OKLCHoklch(44.57% 0.172 304.1)
XYZxyz(13.2574, 7.6813, 33.5784)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A309F #659F30
analogous
#32309F #6A309F #9F309C
triadic
#6A309F #9F6A30 #309F6A
tetradic
#6A309F #9F3230 #659F30 #309C9F
square
#6A309F #9F3230 #659F30 #309C9F
split-complementary
#6A309F #9C9F30 #309F32
monochromatic
#2B1441 #4B2270 #6A309F #8945C7 #A774D5

Accessibility & contrast

On white

8.28
#6A309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6A309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A309F
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A309F#FFFFFF#000000##FFFFFF
##6A309F1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#604964
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a309f;
/* rgb */ color: rgb(106, 48, 159);
/* oklch */ color: oklch(44.6% 0.172 304.1);
Tailwind
colors: {
  custom: {
    50: '#996dbc',
    500: '#6a309f',
    950: '#000000',
  },
}
SCSS
$custom: #6a309f;
$custom-light: #996dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a309f",
  "rgb": {
    "r": 106,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 271.351,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44571,
    "c": 0.17202,
    "h": 304.1
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#6A309F
secondary
#94BD6E
accent
#DD4B91
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A309F

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

Preview Lab → · Contrast checker → · Palette generator →

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