#6A38C6#6A38C6

#6A38C6 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.7% C 0.206 H 293.3°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#6A38C6
RGBrgb(106, 56, 198)
HSLhsl(261, 56%, 50%)
HSVhsv(261, 72%, 78%)
CMYKcmyk(46.5%, 71.7%, 0%, 22.4%)
CIE-LABlab(37.79, 52.87, -65.98)
CIE-LCHlch(37.79, 84.55, 308.71°)
OKLaboklab(48.72% 0.0815 -0.1891)
OKLCHoklch(48.72% 0.206 293.3)
XYZxyz(17.5483, 9.9692, 54.4148)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38C6 #94C638
analogous
#384DC6 #6A38C6 #B138C6
triadic
#6A38C6 #C66A38 #38C66A
tetradic
#6A38C6 #C6384D #94C638 #38C6B1
square
#6A38C6 #C6384D #94C638 #38C6B1
split-complementary
#6A38C6 #C6B138 #4DC638
monochromatic
#371D67 #502B96 #6A38C6 #8D67D4 #B197E2

Accessibility & contrast

On white

7.01
#6A38C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6A38C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A38C6
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38C6#FFFFFF#000000##FFFFFF
##6A38C61.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0056C3
Tritanopia (blue-blind)
#4E5D7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6a38c6;
/* rgb */ color: rgb(106, 56, 198);
/* oklch */ color: oklch(48.7% 0.206 293.3);
Tailwind
colors: {
  custom: {
    50: '#9d73d8',
    500: '#6a38c6',
    950: '#000000',
  },
}
SCSS
$custom: #6a38c6;
$custom-light: #9d73d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38c6",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 261.127,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48717,
    "c": 0.20591,
    "h": 293.3
  },
  "luminance": 0.0997
}

Semantic roles & 50–950 ramp

primary
#6A38C6
secondary
#B6CD8D
accent
#DF49AA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6A38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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