#6E38D4#6E38D4

#6E38D4 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.3% C 0.222 H 292.3°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#6E38D4
RGBrgb(110, 56, 212)
HSLhsl(261, 64%, 53%)
HSVhsv(261, 74%, 83%)
CMYKcmyk(48.1%, 73.6%, 0%, 16.9%)
CIE-LABlab(39.40, 57.21, -71.43)
CIE-LCHlch(39.40, 91.52, 308.69°)
OKLaboklab(50.32% 0.0841 -0.2049)
OKLCHoklch(50.32% 0.222 292.3)
XYZxyz(19.7249, 10.8961, 63.3385)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E38D4 #9ED438
analogous
#3850D4 #6E38D4 #BC38D4
triadic
#6E38D4 #D46E38 #38D46E
tetradic
#6E38D4 #D43850 #9ED438 #38D4BC
square
#6E38D4 #D43850 #9ED438 #38D4BC
split-complementary
#6E38D4 #D4BC38 #50D438
monochromatic
#3A1A78 #5325AA #6E38D4 #936ADF #B79DEA

Accessibility & contrast

On white

6.61
#6E38D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6E38D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E38D4
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E38D4#FFFFFF#000000##FFFFFF
##6E38D41.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#005AD1
Tritanopia (blue-blind)
#4D6283
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6e38d4;
/* rgb */ color: rgb(110, 56, 212);
/* oklch */ color: oklch(50.3% 0.222 292.3);
Tailwind
colors: {
  custom: {
    50: '#a174e2',
    500: '#6e38d4',
    950: '#000000',
  },
}
SCSS
$custom: #6e38d4;
$custom-light: #a174e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6e38d4",
  "rgb": {
    "r": 110,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 260.769,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50324,
    "c": 0.22155,
    "h": 292.3
  },
  "luminance": 0.10897
}

Semantic roles & 50–950 ramp

primary
#6E38D4
secondary
#BED692
accent
#E740AE
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6E38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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