#6E40BE#6E40BE

#6E40BE is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.187 H 295.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#6E40BE
RGBrgb(110, 64, 190)
HSLhsl(262, 50%, 50%)
HSVhsv(262, 66%, 75%)
CMYKcmyk(42.1%, 66.3%, 0%, 25.5%)
CIE-LABlab(39.07, 47.38, -59.19)
CIE-LCHlch(39.07, 75.82, 308.68°)
OKLaboklab(49.54% 0.0807 -0.169)
OKLCHoklch(49.54% 0.187 295.5)
XYZxyz(17.5556, 10.6991, 49.8454)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40BE #90BE40
analogous
#4051BE #6E40BE #AD40BE
triadic
#6E40BE #BE6E40 #40BE6E
tetradic
#6E40BE #BE4051 #90BE40 #40BEAD
square
#6E40BE #BE4051 #90BE40 #40BEAD
split-complementary
#6E40BE #BEAD40 #51BE40
monochromatic
#392162 #533190 #6E40BE #916DCE #B39BDD

Accessibility & contrast

On white

6.69
#6E40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6E40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40BE
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40BE#FFFFFF#000000##FFFFFF
##6E40BE1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#595E79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6e40be;
/* rgb */ color: rgb(110, 64, 190);
/* oklch */ color: oklch(49.5% 0.187 295.5);
Tailwind
colors: {
  custom: {
    50: '#9e78d2',
    500: '#6e40be',
    950: '#000000',
  },
}
SCSS
$custom: #6e40be;
$custom-light: #9e78d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40be",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 261.905,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49536,
    "c": 0.18731,
    "h": 295.5
  },
  "luminance": 0.10699
}

Semantic roles & 50–950 ramp

primary
#6E40BE
secondary
#B5C990
accent
#D94FA7
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6E40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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