#6938AA#6938AA

#6938AA is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.174 H 299.2°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#6938AA
RGBrgb(105, 56, 170)
HSLhsl(266, 50%, 44%)
HSVhsv(266, 67%, 67%)
CMYKcmyk(38.2%, 67.1%, 0%, 33.3%)
CIE-LABlab(35.47, 45.29, -53.23)
CIE-LCHlch(35.47, 69.89, 310.39°)
OKLaboklab(46.35% 0.0848 -0.1517)
OKLCHoklch(46.35% 0.174 299.2)
XYZxyz(14.4938, 8.7337, 38.9446)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938AA #79AA38
analogous
#3840AA #6938AA #A238AA
triadic
#6938AA #AA6938 #38AA69
tetradic
#6938AA #AA3840 #79AA38 #38AAA2
square
#6938AA #AA3840 #79AA38 #38AAA2
split-complementary
#6938AA #AAA238 #40AA38
monochromatic
#301A4E #4D297C #6938AA #8857C8 #A885D7

Accessibility & contrast

On white

7.65
#6938AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6938AA#FFFFFF#000000##FFFFFF
##6938AA1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#5A526C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6938aa;
/* rgb */ color: rgb(105, 56, 170);
/* oklch */ color: oklch(46.3% 0.174 299.2);
Tailwind
colors: {
  custom: {
    50: '#9972c4',
    500: '#6938aa',
    950: '#000000',
  },
}
SCSS
$custom: #6938aa;
$custom-light: #9972c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6938aa",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 265.789,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46346,
    "c": 0.17377,
    "h": 299.2
  },
  "luminance": 0.08734
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6938AA

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

Preview Lab → · Contrast checker → · Palette generator →

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