#6E38B2#6E38B2

#6E38B2 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.5% C 0.184 H 299.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#6E38B2
RGBrgb(110, 56, 178)
HSLhsl(267, 52%, 46%)
HSVhsv(267, 69%, 70%)
CMYKcmyk(38.2%, 68.5%, 0%, 30.2%)
CIE-LABlab(36.66, 48.38, -56.03)
CIE-LCHlch(36.66, 74.02, 310.81°)
OKLaboklab(47.53% 0.0908 -0.1597)
OKLCHoklch(47.53% 0.184 299.6)
XYZxyz(15.8785, 9.3575, 43.0805)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E38B2 #7CB238
analogous
#383FB2 #6E38B2 #AB38B2
triadic
#6E38B2 #B26E38 #38B26E
tetradic
#6E38B2 #B2383F #7CB238 #38B2AB
square
#6E38B2 #B2383F #7CB238 #38B2AB
split-complementary
#6E38B2 #B2AB38 #3FB238
monochromatic
#341B55 #512983 #6E38B2 #8D5CCC #AE8ADA

Accessibility & contrast

On white

7.31
#6E38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6E38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E38B2
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E38B2#FFFFFF#000000##FFFFFF
##6E38B21.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#5E5570
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6e38b2;
/* rgb */ color: rgb(110, 56, 178);
/* oklch */ color: oklch(47.5% 0.184 299.6);
Tailwind
colors: {
  custom: {
    50: '#9d73ca',
    500: '#6e38b2',
    950: '#000000',
  },
}
SCSS
$custom: #6e38b2;
$custom-light: #9d73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6e38b2",
  "rgb": {
    "r": 110,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 266.557,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47527,
    "c": 0.18371,
    "h": 299.6
  },
  "luminance": 0.09358
}

Semantic roles & 50–950 ramp

primary
#6E38B2
secondary
#A7C581
accent
#DC4C9C
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6E38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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