#6B34BB#6B34BB

#6B34BB is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.4% C 0.198 H 296.7°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#6B34BB
RGBrgb(107, 52, 187)
HSLhsl(264, 56%, 47%)
HSVhsv(264, 72%, 73%)
CMYKcmyk(42.8%, 72.2%, 0%, 26.7%)
CIE-LABlab(36.31, 52.09, -61.94)
CIE-LCHlch(36.31, 80.93, 310.06°)
OKLaboklab(47.42% 0.0889 -0.1772)
OKLCHoklch(47.42% 0.198 296.7)
XYZxyz(16.2587, 9.1693, 47.9173)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B34BB #84BB34
analogous
#3441BB #6B34BB #AE34BB
triadic
#6B34BB #BB6B34 #34BB6B
tetradic
#6B34BB #BB3441 #84BB34 #34BBAE
square
#6B34BB #BB3441 #84BB34 #34BBAE
split-complementary
#6B34BB #BBAE34 #41BB34
monochromatic
#34195B #50278B #6B34BB #8B5BD1 #AD8BDF

Accessibility & contrast

On white

7.41
#6B34BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6B34BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B34BB
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B34BB#FFFFFF#000000##FFFFFF
##6B34BB1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#565674
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6b34bb;
/* rgb */ color: rgb(107, 52, 187);
/* oklch */ color: oklch(47.4% 0.198 296.7);
Tailwind
colors: {
  custom: {
    50: '#9c70d0',
    500: '#6b34bb',
    950: '#000000',
  },
}
SCSS
$custom: #6b34bb;
$custom-light: #9c70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b34bb",
  "rgb": {
    "r": 107,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 264.444,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47415,
    "c": 0.19823,
    "h": 296.7
  },
  "luminance": 0.0917
}

Semantic roles & 50–950 ramp

primary
#6B34BB
secondary
#ACC982
accent
#E048A2
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6B34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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