#6A38AF#6A38AF

#6A38AF is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.8% C 0.180 H 298.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#6A38AF
RGBrgb(106, 56, 175)
HSLhsl(265, 52%, 45%)
HSVhsv(265, 68%, 69%)
CMYKcmyk(39.4%, 68%, 0%, 31.4%)
CIE-LABlab(35.96, 46.80, -55.41)
CIE-LCHlch(35.96, 72.53, 310.18°)
OKLaboklab(46.85% 0.0856 -0.158)
OKLCHoklch(46.85% 0.18 298.4)
XYZxyz(15.0939, 8.9875, 41.4886)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38AF #7DAF38
analogous
#3842AF #6A38AF #A538AF
triadic
#6A38AF #AF6A38 #38AF6A
tetradic
#6A38AF #AF3842 #7DAF38 #38AFA5
square
#6A38AF #AF3842 #7DAF38 #38AFA5
split-complementary
#6A38AF #AFA538 #42AF38
monochromatic
#321A52 #4E2981 #6A38AF #895ACA #AA88D9

Accessibility & contrast

On white

7.51
#6A38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6A38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A38AF
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38AF#FFFFFF#000000##FFFFFF
##6A38AF1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#5A546F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6a38af;
/* rgb */ color: rgb(106, 56, 175);
/* oklch */ color: oklch(46.8% 0.180 298.4);
Tailwind
colors: {
  custom: {
    50: '#9a72c8',
    500: '#6a38af',
    950: '#000000',
  },
}
SCSS
$custom: #6a38af;
$custom-light: #9a72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38af",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 265.21,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46845,
    "c": 0.17971,
    "h": 298.4
  },
  "luminance": 0.08988
}

Semantic roles & 50–950 ramp

primary
#6A38AF
secondary
#A7C380
accent
#DB4D9F
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6A38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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