#6938BA#6938BA

#6938BA is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.192 H 295.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#6938BA
RGBrgb(105, 56, 186)
HSLhsl(263, 54%, 47%)
HSVhsv(263, 70%, 73%)
CMYKcmyk(43.5%, 69.9%, 0%, 27.1%)
CIE-LABlab(36.70, 49.50, -60.72)
CIE-LCHlch(36.70, 78.34, 309.19°)
OKLaboklab(47.62% 0.0824 -0.1737)
OKLCHoklch(47.62% 0.192 295.4)
XYZxyz(16.1004, 9.3764, 47.4064)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938BA #89BA38
analogous
#3848BA #6938BA #AA38BA
triadic
#6938BA #BA6938 #38BA69
tetradic
#6938BA #BA3848 #89BA38 #38BAAA
square
#6938BA #BA3848 #89BA38 #38BAAA
split-complementary
#6938BA #BAAA38 #48BA38
monochromatic
#341C5C #4E2A8B #6938BA #8A60CF #AD8FDD

Accessibility & contrast

On white

7.30
#6938BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6938BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6938BA#FFFFFF#000000##FFFFFF
##6938BA1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#535875
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6938ba;
/* rgb */ color: rgb(105, 56, 186);
/* oklch */ color: oklch(47.6% 0.192 295.4);
Tailwind
colors: {
  custom: {
    50: '#9b72d0',
    500: '#6938ba',
    950: '#000000',
  },
}
SCSS
$custom: #6938ba;
$custom-light: #9b72d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6938ba",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 262.615,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47615,
    "c": 0.19224,
    "h": 295.4
  },
  "luminance": 0.09377
}

Semantic roles & 50–950 ramp

primary
#6938BA
secondary
#AFC886
accent
#DD4BA6
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6938BA

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

Preview Lab → · Contrast checker → · Palette generator →

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