#6A38B3#6A38B3

#6A38B3 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.2% C 0.184 H 297.5°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#6A38B3
RGBrgb(106, 56, 179)
HSLhsl(264, 52%, 46%)
HSVhsv(264, 69%, 70%)
CMYKcmyk(40.8%, 68.7%, 0%, 29.8%)
CIE-LABlab(36.27, 47.84, -57.29)
CIE-LCHlch(36.27, 74.64, 309.87°)
OKLaboklab(47.16% 0.085 -0.1635)
OKLCHoklch(47.16% 0.184 297.5)
XYZxyz(15.4926, 9.1469, 43.5884)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38B3 #81B338
analogous
#3844B3 #6A38B3 #A738B3
triadic
#6A38B3 #B36A38 #38B36A
tetradic
#6A38B3 #B33844 #81B338 #38B3A7
square
#6A38B3 #B33844 #81B338 #38B3A7
split-complementary
#6A38B3 #B3A738 #44B338
monochromatic
#331B56 #4E2984 #6A38B3 #8A5CCC #AB8BDB

Accessibility & contrast

On white

7.42
#6A38B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6A38B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A38B3
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38B3#FFFFFF#000000##FFFFFF
##6A38B31.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#585671
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6a38b3;
/* rgb */ color: rgb(106, 56, 179);
/* oklch */ color: oklch(47.2% 0.184 297.5);
Tailwind
colors: {
  custom: {
    50: '#9b72cb',
    500: '#6a38b3',
    950: '#000000',
  },
}
SCSS
$custom: #6a38b3;
$custom-light: #9b72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38b3",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 264.39,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4716,
    "c": 0.18431,
    "h": 297.5
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#6A38B3
secondary
#AAC582
accent
#DC4CA1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6A38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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