#6E40B2#6E40B2

#6E40B2 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.173 H 298.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#6E40B2
RGBrgb(110, 64, 178)
HSLhsl(264, 47%, 47%)
HSVhsv(264, 64%, 70%)
CMYKcmyk(38.2%, 64%, 0%, 30.2%)
CIE-LABlab(38.19, 44.19, -53.55)
CIE-LCHlch(38.19, 69.43, 309.53°)
OKLaboklab(48.63% 0.0819 -0.1524)
OKLCHoklch(48.63% 0.173 298.3)
XYZxyz(16.2977, 10.1959, 43.2202)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40B2 #84B240
analogous
#404BB2 #6E40B2 #A740B2
triadic
#6E40B2 #B26E40 #40B26E
tetradic
#6E40B2 #B2404B #84B240 #40B2A7
square
#6E40B2 #B2404B #84B240 #40B2A7
split-complementary
#6E40B2 #B2A740 #4BB240
monochromatic
#362058 #523085 #6E40B2 #8E67C8 #B094D8

Accessibility & contrast

On white

6.91
#6E40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6E40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40B2
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40B2#FFFFFF#000000##FFFFFF
##6E40B21.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#5E5A73
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6e40b2;
/* rgb */ color: rgb(110, 64, 178);
/* oklch */ color: oklch(48.6% 0.173 298.3);
Tailwind
colors: {
  custom: {
    50: '#9c77ca',
    500: '#6e40b2',
    950: '#000000',
  },
}
SCSS
$custom: #6e40b2;
$custom-light: #9c77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40b2",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 264.211,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48627,
    "c": 0.17307,
    "h": 298.3
  },
  "luminance": 0.10196
}

Semantic roles & 50–950 ramp

primary
#6E40B2
secondary
#ADC48A
accent
#D751A1
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #6E40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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