#6D34B2#6D34B2

#6D34B2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.189 H 299.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#6D34B2
RGBrgb(109, 52, 178)
HSLhsl(267, 55%, 45%)
HSVhsv(267, 71%, 70%)
CMYKcmyk(38.8%, 70.8%, 0%, 30.2%)
CIE-LABlab(35.83, 50.16, -57.38)
CIE-LCHlch(35.83, 76.21, 311.16°)
OKLaboklab(46.91% 0.0935 -0.1637)
OKLCHoklch(46.91% 0.189 299.7)
XYZxyz(15.5685, 8.9214, 43.0126)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D34B2 #79B234
analogous
#343AB2 #6D34B2 #AC34B2
triadic
#6D34B2 #B26D34 #34B26D
tetradic
#6D34B2 #B2343A #79B234 #34B2AC
square
#6D34B2 #B2343A #79B234 #34B2AC
split-complementary
#6D34B2 #B2AC34 #3AB234
monochromatic
#331853 #502683 #6D34B2 #8C56CE #AC85DB

Accessibility & contrast

On white

7.54
#6D34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#6D34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D34B2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D34B2#FFFFFF#000000##FFFFFF
##6D34B21.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0053AF
Tritanopia (blue-blind)
#5D536F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6d34b2;
/* rgb */ color: rgb(109, 52, 178);
/* oklch */ color: oklch(46.9% 0.189 299.7);
Tailwind
colors: {
  custom: {
    50: '#9d70ca',
    500: '#6d34b2',
    950: '#000000',
  },
}
SCSS
$custom: #6d34b2;
$custom-light: #9d70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6d34b2",
  "rgb": {
    "r": 109,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 267.143,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46907,
    "c": 0.18854,
    "h": 299.7
  },
  "luminance": 0.08922
}

Semantic roles & 50–950 ramp

primary
#6D34B2
secondary
#A4C57D
accent
#DE4A9B
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6D34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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