#6E39B1#6E39B1

#6E39B1 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.181 H 299.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#6E39B1
RGBrgb(110, 57, 177)
HSLhsl(267, 51%, 46%)
HSVhsv(267, 68%, 69%)
CMYKcmyk(37.9%, 67.8%, 0%, 30.6%)
CIE-LABlab(36.77, 47.62, -55.26)
CIE-LCHlch(36.77, 72.94, 310.75°)
OKLaboklab(47.58% 0.0899 -0.1574)
OKLCHoklch(47.58% 0.181 299.7)
XYZxyz(15.8274, 9.4154, 42.5699)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E39B1 #7CB139
analogous
#3940B1 #6E39B1 #AA39B1
triadic
#6E39B1 #B16E39 #39B16E
tetradic
#6E39B1 #B13940 #7CB139 #39B1AA
square
#6E39B1 #B13940 #7CB139 #39B1AA
split-complementary
#6E39B1 #B1AA39 #40B139
monochromatic
#341B54 #512A83 #6E39B1 #8D5DCB #AE8BDA

Accessibility & contrast

On white

7.28
#6E39B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6E39B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E39B1
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E39B1#FFFFFF#000000##FFFFFF
##6E39B11.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#5F5570
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6e39b1;
/* rgb */ color: rgb(110, 57, 177);
/* oklch */ color: oklch(47.6% 0.181 299.7);
Tailwind
colors: {
  custom: {
    50: '#9d73c9',
    500: '#6e39b1',
    950: '#000000',
  },
}
SCSS
$custom: #6e39b1;
$custom-light: #9d73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6e39b1",
  "rgb": {
    "r": 110,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 266.5,
    "s": 51.282,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47581,
    "c": 0.18129,
    "h": 299.7
  },
  "luminance": 0.09416
}

Semantic roles & 50–950 ramp

primary
#6E39B1
secondary
#A7C482
accent
#DB4D9C
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6E39B1

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

Preview Lab → · Contrast checker → · Palette generator →

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