#6938AC#6938AC

#6938AC is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.176 H 298.7°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#6938AC
RGBrgb(105, 56, 172)
HSLhsl(265, 51%, 45%)
HSVhsv(265, 67%, 67%)
CMYKcmyk(39%, 67.4%, 0%, 32.5%)
CIE-LABlab(35.62, 45.81, -54.19)
CIE-LCHlch(35.62, 70.96, 310.21°)
OKLaboklab(46.5% 0.0846 -0.1545)
OKLCHoklch(46.5% 0.176 298.7)
XYZxyz(14.6844, 8.8100, 39.9486)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938AC #7BAC38
analogous
#3841AC #6938AC #A338AC
triadic
#6938AC #AC6938 #38AC69
tetradic
#6938AC #AC3841 #7BAC38 #38ACA3
square
#6938AC #AC3841 #7BAC38 #38ACA3
split-complementary
#6938AC #ACA338 #41AC38
monochromatic
#311A50 #4D297E #6938AC #8858C9 #A987D8

Accessibility & contrast

On white

7.60
#6938AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6938AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6938AC
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6938AC#FFFFFF#000000##FFFFFF
##6938AC1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#59536D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6938ac;
/* rgb */ color: rgb(105, 56, 172);
/* oklch */ color: oklch(46.5% 0.176 298.7);
Tailwind
colors: {
  custom: {
    50: '#9972c6',
    500: '#6938ac',
    950: '#000000',
  },
}
SCSS
$custom: #6938ac;
$custom-light: #9972c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6938ac",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 265.345,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46501,
    "c": 0.1761,
    "h": 298.7
  },
  "luminance": 0.0881
}

Semantic roles & 50–950 ramp

primary
#6938AC
secondary
#A5C27E
accent
#DA4D9F
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6938AC

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

Preview Lab → · Contrast checker → · Palette generator →

#6938AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva