#6A38BA#6A38BA

#6A38BA is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.7% C 0.192 H 295.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#6A38BA
RGBrgb(106, 56, 186)
HSLhsl(263, 54%, 47%)
HSVhsv(263, 70%, 73%)
CMYKcmyk(43%, 69.9%, 0%, 27.1%)
CIE-LABlab(36.81, 49.69, -60.53)
CIE-LCHlch(36.81, 78.31, 309.38°)
OKLaboklab(47.72% 0.0838 -0.1731)
OKLCHoklch(47.72% 0.192 295.8)
XYZxyz(16.2186, 9.4373, 47.4119)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38BA #88BA38
analogous
#3847BA #6A38BA #AB38BA
triadic
#6A38BA #BA6A38 #38BA6A
tetradic
#6A38BA #BA3847 #88BA38 #38BAAB
square
#6A38BA #BA3847 #88BA38 #38BAAB
split-complementary
#6A38BA #BAAB38 #47BA38
monochromatic
#341C5C #4F2A8B #6A38BA #8B60CF #AD8FDD

Accessibility & contrast

On white

7.27
#6A38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6A38BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A38BA
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38BA#FFFFFF#000000##FFFFFF
##6A38BA1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0055B7
Tritanopia (blue-blind)
#555875
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6a38ba;
/* rgb */ color: rgb(106, 56, 186);
/* oklch */ color: oklch(47.7% 0.192 295.8);
Tailwind
colors: {
  custom: {
    50: '#9b73d0',
    500: '#6a38ba',
    950: '#000000',
  },
}
SCSS
$custom: #6a38ba;
$custom-light: #9b73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38ba",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 263.077,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47722,
    "c": 0.19233,
    "h": 295.8
  },
  "luminance": 0.09438
}

Semantic roles & 50–950 ramp

primary
#6A38BA
secondary
#AFC886
accent
#DD4BA5
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6A38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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