#6938C7#6938C7

#6938C7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.7% C 0.207 H 292.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#6938C7
RGBrgb(105, 56, 199)
HSLhsl(261, 56%, 50%)
HSVhsv(261, 72%, 78%)
CMYKcmyk(47.2%, 71.9%, 0%, 22%)
CIE-LABlab(37.76, 52.97, -66.61)
CIE-LCHlch(37.76, 85.10, 308.49°)
OKLaboklab(48.7% 0.0799 -0.191)
OKLCHoklch(48.7% 0.207 292.7)
XYZxyz(17.5458, 9.9545, 55.0187)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938C7 #96C738
analogous
#384FC7 #6938C7 #B038C7
triadic
#6938C7 #C76938 #38C769
tetradic
#6938C7 #C7384F #96C738 #38C7B0
square
#6938C7 #C7384F #96C738 #38C7B0
split-complementary
#6938C7 #C7B038 #4FC738
monochromatic
#371D67 #502B97 #6938C7 #8D68D4 #B198E2

Accessibility & contrast

On white

7.02
#6938C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6938C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6938C7#FFFFFF#000000##FFFFFF
##6938C71.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#0056C4
Tritanopia (blue-blind)
#4C5D7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6938c7;
/* rgb */ color: rgb(105, 56, 199);
/* oklch */ color: oklch(48.7% 0.207 292.7);
Tailwind
colors: {
  custom: {
    50: '#9c73d9',
    500: '#6938c7',
    950: '#000000',
  },
}
SCSS
$custom: #6938c7;
$custom-light: #9c73d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6938c7",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 260.559,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.48699,
    "c": 0.207,
    "h": 292.7
  },
  "luminance": 0.09955
}

Semantic roles & 50–950 ramp

primary
#6938C7
secondary
#B7CD8D
accent
#DF48AC
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6938C7

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

Preview Lab → · Contrast checker → · Palette generator →

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