#6A34B3#6A34B3

#6A34B3 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.189 H 298.1°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#6A34B3
RGBrgb(106, 52, 179)
HSLhsl(266, 55%, 45%)
HSVhsv(266, 71%, 70%)
CMYKcmyk(40.8%, 70.9%, 0%, 29.8%)
CIE-LABlab(35.55, 49.84, -58.46)
CIE-LCHlch(35.55, 76.82, 310.45°)
OKLaboklab(46.65% 0.0891 -0.167)
OKLCHoklch(46.65% 0.189 298.1)
XYZxyz(15.3064, 8.7746, 43.5263)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A34B3 #7DB334
analogous
#343DB3 #6A34B3 #A934B3
triadic
#6A34B3 #B36A34 #34B36A
tetradic
#6A34B3 #B3343D #7DB334 #34B3A9
square
#6A34B3 #B3343D #7DB334 #34B3A9
split-complementary
#6A34B3 #B3A934 #3DB334
monochromatic
#321854 #4E2684 #6A34B3 #8956CE #AA86DC

Accessibility & contrast

On white

7.62
#6A34B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6A34B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A34B3
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A34B3#FFFFFF#000000##FFFFFF
##6A34B31.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#585370
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6a34b3;
/* rgb */ color: rgb(106, 52, 179);
/* oklch */ color: oklch(46.6% 0.189 298.1);
Tailwind
colors: {
  custom: {
    50: '#9b70cb',
    500: '#6a34b3',
    950: '#000000',
  },
}
SCSS
$custom: #6a34b3;
$custom-light: #9b70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a34b3",
  "rgb": {
    "r": 106,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 265.512,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46647,
    "c": 0.18923,
    "h": 298.1
  },
  "luminance": 0.08775
}

Semantic roles & 50–950 ramp

primary
#6A34B3
secondary
#A7C57D
accent
#DE499F
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6A34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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