#6A38BF#6A38BF

#6A38BF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.1% C 0.198 H 294.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#6A38BF
RGBrgb(106, 56, 191)
HSLhsl(262, 55%, 48%)
HSVhsv(262, 71%, 75%)
CMYKcmyk(44.5%, 70.7%, 0%, 25.1%)
CIE-LABlab(37.21, 51.01, -62.82)
CIE-LCHlch(37.21, 80.92, 309.08°)
OKLaboklab(48.13% 0.0829 -0.1798)
OKLCHoklch(48.13% 0.198 294.8)
XYZxyz(16.7595, 9.6537, 50.2604)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38BF #8DBF38
analogous
#3849BF #6A38BF #AD38BF
triadic
#6A38BF #BF6A38 #38BF6A
tetradic
#6A38BF #BF3849 #8DBF38 #38BFAD
square
#6A38BF #BF3849 #8DBF38 #38BFAD
split-complementary
#6A38BF #BFAD38 #49BF38
monochromatic
#351C60 #502A90 #6A38BF #8C63D1 #AF92DF

Accessibility & contrast

On white

7.17
#6A38BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6A38BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A38BF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38BF#FFFFFF#000000##FFFFFF
##6A38BF1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#0055BC
Tritanopia (blue-blind)
#525A78
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6a38bf;
/* rgb */ color: rgb(106, 56, 191);
/* oklch */ color: oklch(48.1% 0.198 294.8);
Tailwind
colors: {
  custom: {
    50: '#9c73d3',
    500: '#6a38bf',
    950: '#000000',
  },
}
SCSS
$custom: #6a38bf;
$custom-light: #9c73d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38bf",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 262.222,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.48132,
    "c": 0.198,
    "h": 294.8
  },
  "luminance": 0.09654
}

Semantic roles & 50–950 ramp

primary
#6A38BF
secondary
#B2CA89
accent
#DE4AA7
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6A38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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