#6B40B2#6B40B2

#6B40B2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.173 H 296.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#6B40B2
RGBrgb(107, 64, 178)
HSLhsl(263, 47%, 47%)
HSVhsv(263, 64%, 70%)
CMYKcmyk(39.9%, 64%, 0%, 30.2%)
CIE-LABlab(37.85, 43.55, -54.11)
CIE-LCHlch(37.85, 69.46, 308.82°)
OKLaboklab(48.31% 0.0778 -0.1542)
OKLCHoklch(48.31% 0.173 296.8)
XYZxyz(15.9306, 10.0067, 43.2030)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40B2 #87B240
analogous
#404EB2 #6B40B2 #A440B2
triadic
#6B40B2 #B26B40 #40B26B
tetradic
#6B40B2 #B2404E #87B240 #40B2A4
square
#6B40B2 #B2404E #87B240 #40B2A4
split-complementary
#6B40B2 #B2A440 #4EB240
monochromatic
#352058 #503085 #6B40B2 #8C67C8 #AE94D8

Accessibility & contrast

On white

7.00
#6B40B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#6B40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40B2
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40B2#FFFFFF#000000##FFFFFF
##6B40B21.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#5A5A73
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6b40b2;
/* rgb */ color: rgb(107, 64, 178);
/* oklch */ color: oklch(48.3% 0.173 296.8);
Tailwind
colors: {
  custom: {
    50: '#9b77ca',
    500: '#6b40b2',
    950: '#000000',
  },
}
SCSS
$custom: #6b40b2;
$custom-light: #9b77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40b2",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 262.632,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48306,
    "c": 0.17271,
    "h": 296.8
  },
  "luminance": 0.10007
}

Semantic roles & 50–950 ramp

primary
#6B40B2
secondary
#AEC48A
accent
#D751A4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0913
muted
#7E7B82

Preview Lab

Preview with #6B40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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