#6938AB#6938AB

#6938AB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.4% C 0.175 H 299.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#6938AB
RGBrgb(105, 56, 171)
HSLhsl(266, 51%, 45%)
HSVhsv(266, 67%, 67%)
CMYKcmyk(38.6%, 67.3%, 0%, 32.9%)
CIE-LABlab(35.54, 45.55, -53.71)
CIE-LCHlch(35.54, 70.42, 310.30°)
OKLaboklab(46.42% 0.0847 -0.1531)
OKLCHoklch(46.42% 0.175 299)
XYZxyz(14.5887, 8.7717, 39.4447)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938AB #7AAB38
analogous
#3841AB #6938AB #A338AB
triadic
#6938AB #AB6938 #38AB69
tetradic
#6938AB #AB3841 #7AAB38 #38ABA3
square
#6938AB #AB3841 #7AAB38 #38ABA3
split-complementary
#6938AB #ABA338 #41AB38
monochromatic
#301A4F #4D297D #6938AB #8858C8 #A986D7

Accessibility & contrast

On white

7.62
#6938AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6938AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6938AB
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6938AB#FFFFFF#000000##FFFFFF
##6938AB1.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#5A536D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6938ab;
/* rgb */ color: rgb(105, 56, 171);
/* oklch */ color: oklch(46.4% 0.175 299.0);
Tailwind
colors: {
  custom: {
    50: '#9972c5',
    500: '#6938ab',
    950: '#000000',
  },
}
SCSS
$custom: #6938ab;
$custom-light: #9972c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6938ab",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 265.565,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46423,
    "c": 0.17493,
    "h": 299
  },
  "luminance": 0.08772
}

Semantic roles & 50–950 ramp

primary
#6938AB
secondary
#A4C17D
accent
#DA4E9E
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6938AB

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

Preview Lab → · Contrast checker → · Palette generator →

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