#6A38BD#6A38BD

#6A38BD is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.0% C 0.196 H 295.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#6A38BD
RGBrgb(106, 56, 189)
HSLhsl(263, 54%, 48%)
HSVhsv(263, 70%, 74%)
CMYKcmyk(43.9%, 70.4%, 0%, 25.9%)
CIE-LABlab(37.05, 50.48, -61.91)
CIE-LCHlch(37.05, 79.88, 309.19°)
OKLaboklab(47.97% 0.0833 -0.1771)
OKLCHoklch(47.97% 0.196 295.2)
XYZxyz(16.5409, 9.5662, 49.1092)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38BD #8BBD38
analogous
#3849BD #6A38BD #AC38BD
triadic
#6A38BD #BD6A38 #38BD6A
tetradic
#6A38BD #BD3849 #8BBD38 #38BDAC
square
#6A38BD #BD3849 #8BBD38 #38BDAC
split-complementary
#6A38BD #BDAC38 #49BD38
monochromatic
#351C5F #502A8E #6A38BD #8B62D0 #AE91DE

Accessibility & contrast

On white

7.21
#6A38BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6A38BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A38BD
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38BD#FFFFFF#000000##FFFFFF
##6A38BD1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#535976
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6a38bd;
/* rgb */ color: rgb(106, 56, 189);
/* oklch */ color: oklch(48.0% 0.196 295.2);
Tailwind
colors: {
  custom: {
    50: '#9c73d2',
    500: '#6a38bd',
    950: '#000000',
  },
}
SCSS
$custom: #6a38bd;
$custom-light: #9c73d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38bd",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 262.556,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47967,
    "c": 0.19574,
    "h": 295.2
  },
  "luminance": 0.09567
}

Semantic roles & 50–950 ramp

primary
#6A38BD
secondary
#B1C987
accent
#DE4AA6
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6A38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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