#6E38B4#6E38B4

#6E38B4 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.7% C 0.186 H 299.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#6E38B4
RGBrgb(110, 56, 180)
HSLhsl(266, 53%, 46%)
HSVhsv(266, 69%, 71%)
CMYKcmyk(38.9%, 68.9%, 0%, 29.4%)
CIE-LABlab(36.81, 48.89, -56.97)
CIE-LCHlch(36.81, 75.07, 310.64°)
OKLaboklab(47.68% 0.0905 -0.1625)
OKLCHoklch(47.68% 0.186 299.1)
XYZxyz(16.0807, 9.4384, 44.1458)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E38B4 #7EB438
analogous
#3840B4 #6E38B4 #AC38B4
triadic
#6E38B4 #B46E38 #38B46E
tetradic
#6E38B4 #B43840 #7EB438 #38B4AC
square
#6E38B4 #B43840 #7EB438 #38B4AC
split-complementary
#6E38B4 #B4AC38 #40B438
monochromatic
#351B57 #512985 #6E38B4 #8D5DCD #AE8BDB

Accessibility & contrast

On white

7.27
#6E38B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6E38B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E38B4
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E38B4#FFFFFF#000000##FFFFFF
##6E38B41.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#5E5672
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6e38b4;
/* rgb */ color: rgb(110, 56, 180);
/* oklch */ color: oklch(47.7% 0.186 299.1);
Tailwind
colors: {
  custom: {
    50: '#9d73cb',
    500: '#6e38b4',
    950: '#000000',
  },
}
SCSS
$custom: #6e38b4;
$custom-light: #9d73cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6e38b4",
  "rgb": {
    "r": 110,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 266.129,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47683,
    "c": 0.18598,
    "h": 299.1
  },
  "luminance": 0.09439
}

Semantic roles & 50–950 ramp

primary
#6E38B4
secondary
#A8C582
accent
#DC4C9D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6E38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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