#6A38B4#6A38B4

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

Color values

HEX#6A38B4
RGBrgb(106, 56, 180)
HSLhsl(264, 53%, 46%)
HSVhsv(264, 69%, 71%)
CMYKcmyk(41.1%, 68.9%, 0%, 29.4%)
CIE-LABlab(36.34, 48.11, -57.75)
CIE-LCHlch(36.34, 75.17, 309.79°)
OKLaboklab(47.24% 0.0848 -0.1649)
OKLCHoklch(47.24% 0.185 297.2)
XYZxyz(15.5941, 9.1875, 44.1229)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38B4 #82B438
analogous
#3844B4 #6A38B4 #A838B4
triadic
#6A38B4 #B46A38 #38B46A
tetradic
#6A38B4 #B43844 #82B438 #38B4A8
square
#6A38B4 #B43844 #82B438 #38B4A8
split-complementary
#6A38B4 #B4A838 #44B438
monochromatic
#331B57 #4F2985 #6A38B4 #8A5DCD #AB8BDB

Accessibility & contrast

On white

7.40
#6A38B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A38B4
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38B4#FFFFFF#000000##FFFFFF
##6A38B41.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#575672
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6a38b4;
/* rgb */ color: rgb(106, 56, 180);
/* oklch */ color: oklch(47.2% 0.185 297.2);
Tailwind
colors: {
  custom: {
    50: '#9b72cb',
    500: '#6a38b4',
    950: '#000000',
  },
}
SCSS
$custom: #6a38b4;
$custom-light: #9b72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38b4",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 264.194,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4724,
    "c": 0.18547,
    "h": 297.2
  },
  "luminance": 0.09188
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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