#6B2DB2#6B2DB2

#6B2DB2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.9% C 0.196 H 299.7°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#6B2DB2
RGBrgb(107, 45, 178)
HSLhsl(268, 60%, 44%)
HSVhsv(268, 75%, 70%)
CMYKcmyk(39.9%, 74.7%, 0%, 30.2%)
CIE-LABlab(34.43, 53.04, -59.68)
CIE-LCHlch(34.43, 79.84, 311.63°)
OKLaboklab(45.86% 0.0974 -0.1705)
OKLCHoklch(45.86% 0.196 299.7)
XYZxyz(15.0357, 8.2168, 42.9047)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2DB2 #74B22D
analogous
#2D31B2 #6B2DB2 #AD2DB2
triadic
#6B2DB2 #B26B2D #2DB26B
tetradic
#6B2DB2 #B22D31 #74B22D #2DB2AD
square
#6B2DB2 #B22D31 #74B22D #2DB2AD
split-complementary
#6B2DB2 #B2AD2D #31B22D
monochromatic
#301450 #4E2181 #6B2DB2 #8A4BD1 #A97CDE

Accessibility & contrast

On white

7.94
#6B2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6B2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2DB2
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2DB2#FFFFFF#000000##FFFFFF
##6B2DB21.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b2db2;
/* rgb */ color: rgb(107, 45, 178);
/* oklch */ color: oklch(45.9% 0.196 299.7);
Tailwind
colors: {
  custom: {
    50: '#9c6cca',
    500: '#6b2db2',
    950: '#000000',
  },
}
SCSS
$custom: #6b2db2;
$custom-light: #9c6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2db2",
  "rgb": {
    "r": 107,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 267.97,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4586,
    "c": 0.19632,
    "h": 299.7
  },
  "luminance": 0.08217
}

Semantic roles & 50–950 ramp

primary
#6B2DB2
secondary
#A0C675
accent
#E34599
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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