#6B2EB2#6B2EB2

#6B2EB2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.195 H 299.6°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#6B2EB2
RGBrgb(107, 46, 178)
HSLhsl(268, 59%, 44%)
HSVhsv(268, 74%, 70%)
CMYKcmyk(39.9%, 74.2%, 0%, 30.2%)
CIE-LABlab(34.59, 52.60, -59.42)
CIE-LCHlch(34.59, 79.35, 311.51°)
OKLaboklab(45.97% 0.0964 -0.1697)
OKLCHoklch(45.97% 0.195 299.6)
XYZxyz(15.0743, 8.2940, 42.9176)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2EB2 #75B22E
analogous
#2E33B2 #6B2EB2 #AD2EB2
triadic
#6B2EB2 #B26B2E #2EB26B
tetradic
#6B2EB2 #B22E33 #75B22E #2EB2AD
square
#6B2EB2 #B22E33 #75B22E #2EB2AD
split-complementary
#6B2EB2 #B2AD2E #33B22E
monochromatic
#311551 #4E2181 #6B2EB2 #8A4CD1 #AA7DDD

Accessibility & contrast

On white

7.90
#6B2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6B2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2EB2
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2EB2#FFFFFF#000000##FFFFFF
##6B2EB21.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#5A506E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6b2eb2;
/* rgb */ color: rgb(107, 46, 178);
/* oklch */ color: oklch(46.0% 0.195 299.6);
Tailwind
colors: {
  custom: {
    50: '#9c6dca',
    500: '#6b2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #6b2eb2;
$custom-light: #9c6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2eb2",
  "rgb": {
    "r": 107,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 267.727,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45971,
    "c": 0.19523,
    "h": 299.6
  },
  "luminance": 0.08294
}

Semantic roles & 50–950 ramp

primary
#6B2EB2
secondary
#A1C676
accent
#E2469A
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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