#6B2EB5#6B2EB5

#6B2EB5 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.198 H 298.9°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#6B2EB5
RGBrgb(107, 46, 181)
HSLhsl(267, 59%, 45%)
HSVhsv(267, 75%, 71%)
CMYKcmyk(40.9%, 74.6%, 0%, 29%)
CIE-LABlab(34.83, 53.34, -60.80)
CIE-LCHlch(34.83, 80.88, 311.26°)
OKLaboklab(46.22% 0.0958 -0.1738)
OKLCHoklch(46.22% 0.198 298.9)
XYZxyz(15.3788, 8.4158, 44.5213)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2EB5 #78B52E
analogous
#2E35B5 #6B2EB5 #AF2EB5
triadic
#6B2EB5 #B56B2E #2EB56B
tetradic
#6B2EB5 #B52E35 #78B52E #2EB5AF
square
#6B2EB5 #B52E35 #78B52E #2EB5AF
split-complementary
#6B2EB5 #B5AF2E #35B52E
monochromatic
#311553 #4E2284 #6B2EB5 #8A4ED2 #AA7FDE

Accessibility & contrast

On white

7.83
#6B2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6B2EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2EB5
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2EB5#FFFFFF#000000##FFFFFF
##6B2EB51.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#59516F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6b2eb5;
/* rgb */ color: rgb(107, 46, 181);
/* oklch */ color: oklch(46.2% 0.198 298.9);
Tailwind
colors: {
  custom: {
    50: '#9c6dcc',
    500: '#6b2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #6b2eb5;
$custom-light: #9c6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2eb5",
  "rgb": {
    "r": 107,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 267.111,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46221,
    "c": 0.19843,
    "h": 298.9
  },
  "luminance": 0.08416
}

Semantic roles & 50–950 ramp

primary
#6B2EB5
secondary
#A3C778
accent
#E3459B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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