#6A38C5#6A38C5

#6A38C5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.205 H 293.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#6A38C5
RGBrgb(106, 56, 197)
HSLhsl(261, 56%, 50%)
HSVhsv(261, 72%, 77%)
CMYKcmyk(46.2%, 71.6%, 0%, 22.7%)
CIE-LABlab(37.70, 52.60, -65.53)
CIE-LCHlch(37.70, 84.03, 308.75°)
OKLaboklab(48.63% 0.0817 -0.1878)
OKLCHoklch(48.63% 0.205 293.5)
XYZxyz(17.4333, 9.9232, 53.8093)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38C5 #93C538
analogous
#384CC5 #6A38C5 #B138C5
triadic
#6A38C5 #C56A38 #38C56A
tetradic
#6A38C5 #C5384C #93C538 #38C5B1
square
#6A38C5 #C5384C #93C538 #38C5B1
split-complementary
#6A38C5 #C5B138 #4CC538
monochromatic
#371D66 #502A95 #6A38C5 #8D67D4 #B196E1

Accessibility & contrast

On white

7.04
#6A38C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6A38C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A38C5
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38C5#FFFFFF#000000##FFFFFF
##6A38C51.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#4F5C7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6a38c5;
/* rgb */ color: rgb(106, 56, 197);
/* oklch */ color: oklch(48.6% 0.205 293.5);
Tailwind
colors: {
  custom: {
    50: '#9d73d8',
    500: '#6a38c5',
    950: '#000000',
  },
}
SCSS
$custom: #6a38c5;
$custom-light: #9d73d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38c5",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 261.277,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48632,
    "c": 0.20478,
    "h": 293.5
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

primary
#6A38C5
secondary
#B6CD8C
accent
#DF49AA
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6A38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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