#6938D5#6938D5

#6938D5 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.9% C 0.223 H 290.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#6938D5
RGBrgb(105, 56, 213)
HSLhsl(259, 65%, 53%)
HSVhsv(259, 74%, 84%)
CMYKcmyk(50.7%, 73.7%, 0%, 16.5%)
CIE-LABlab(38.96, 56.72, -72.76)
CIE-LCHlch(38.96, 92.26, 307.94°)
OKLaboklab(49.91% 0.0767 -0.209)
OKLCHoklch(49.91% 0.223 290.1)
XYZxyz(19.2467, 10.6349, 63.9765)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938D5 #A4D538
analogous
#3856D5 #6938D5 #B738D5
triadic
#6938D5 #D56938 #38D569
tetradic
#6938D5 #D53856 #A4D538 #38D5B7
square
#6938D5 #D53856 #A4D538 #38D5B7
split-complementary
#6938D5 #D5B738 #56D538
monochromatic
#371A79 #4E24AC #6938D5 #8F6BE0 #B59DEA

Accessibility & contrast

On white

6.72
#6938D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6938D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6938D5#FFFFFF#000000##FFFFFF
##6938D51.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDA
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#436384
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6938d5;
/* rgb */ color: rgb(105, 56, 213);
/* oklch */ color: oklch(49.9% 0.223 290.1);
Tailwind
colors: {
  custom: {
    50: '#9e74e3',
    500: '#6938d5',
    950: '#000000',
  },
}
SCSS
$custom: #6938d5;
$custom-light: #9e74e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6938d5",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 258.726,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49913,
    "c": 0.22263,
    "h": 290.1
  },
  "luminance": 0.10636
}

Semantic roles & 50–950 ramp

primary
#6938D5
secondary
#C1D692
accent
#E840B4
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6938D5

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

Preview Lab → · Contrast checker → · Palette generator →

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