#6938D1#6938D1

#6938D1 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.6% C 0.218 H 290.8°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#6938D1
RGBrgb(105, 56, 209)
HSLhsl(259, 62%, 52%)
HSVhsv(259, 73%, 82%)
CMYKcmyk(49.8%, 73.2%, 0%, 18%)
CIE-LABlab(38.61, 55.65, -71.02)
CIE-LCHlch(38.61, 90.23, 308.08°)
OKLaboklab(49.56% 0.0776 -0.2039)
OKLCHoklch(49.56% 0.218 290.8)
XYZxyz(18.7452, 10.4343, 61.3356)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938D1 #A0D138
analogous
#3853D1 #6938D1 #B638D1
triadic
#6938D1 #D16938 #38D169
tetradic
#6938D1 #D13853 #A0D138 #38D1B6
square
#6938D1 #D13853 #A0D138 #38D1B6
split-complementary
#6938D1 #D1B638 #53D138
monochromatic
#371B74 #4F26A6 #6938D1 #8E6ADC #B49BE8

Accessibility & contrast

On white

6.80
#6938D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6938D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6938D1#FFFFFF#000000##FFFFFF
##6938D11.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD5
Deuteranopia (green-blind)
#0057CE
Tritanopia (blue-blind)
#456182
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6938d1;
/* rgb */ color: rgb(105, 56, 209);
/* oklch */ color: oklch(49.6% 0.218 290.8);
Tailwind
colors: {
  custom: {
    50: '#9d73e0',
    500: '#6938d1',
    950: '#000000',
  },
}
SCSS
$custom: #6938d1;
$custom-light: #9d73e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6938d1",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 259.216,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49561,
    "c": 0.21819,
    "h": 290.8
  },
  "luminance": 0.10435
}

Semantic roles & 50–950 ramp

primary
#6938D1
secondary
#BED491
accent
#E642B1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6938D1

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

Preview Lab → · Contrast checker → · Palette generator →

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