#6A39B2#6A39B2

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

Color values

HEX#6A39B2
RGBrgb(106, 57, 178)
HSLhsl(264, 51%, 46%)
HSVhsv(264, 68%, 70%)
CMYKcmyk(40.4%, 68%, 0%, 30.2%)
CIE-LABlab(36.38, 47.07, -56.52)
CIE-LCHlch(36.38, 73.55, 309.79°)
OKLaboklab(47.21% 0.0841 -0.1613)
OKLCHoklch(47.21% 0.182 297.5)
XYZxyz(15.4408, 9.2045, 43.0740)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A39B2 #81B239
analogous
#3944B2 #6A39B2 #A639B2
triadic
#6A39B2 #B26A39 #39B26A
tetradic
#6A39B2 #B23944 #81B239 #39B2A6
square
#6A39B2 #B23944 #81B239 #39B2A6
split-complementary
#6A39B2 #B2A639 #44B239
monochromatic
#331B55 #4E2A84 #6A39B2 #8A5DCB #AB8BDA

Accessibility & contrast

On white

7.39
#6A39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6A39B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A39B2
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A39B2#FFFFFF#000000##FFFFFF
##6A39B21.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#585671
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6a39b2;
/* rgb */ color: rgb(106, 57, 178);
/* oklch */ color: oklch(47.2% 0.182 297.5);
Tailwind
colors: {
  custom: {
    50: '#9a73ca',
    500: '#6a39b2',
    950: '#000000',
  },
}
SCSS
$custom: #6a39b2;
$custom-light: #9a73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6a39b2",
  "rgb": {
    "r": 106,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 264.298,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47214,
    "c": 0.18189,
    "h": 297.5
  },
  "luminance": 0.09205
}

Semantic roles & 50–950 ramp

primary
#6A39B2
secondary
#AAC482
accent
#DB4DA1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6A39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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