#6938B7#6938B7

#6938B7 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.4% C 0.189 H 296.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#6938B7
RGBrgb(105, 56, 183)
HSLhsl(263, 53%, 47%)
HSVhsv(263, 69%, 72%)
CMYKcmyk(42.6%, 69.4%, 0%, 28.2%)
CIE-LABlab(36.46, 48.71, -59.34)
CIE-LCHlch(36.46, 76.77, 309.38°)
OKLaboklab(47.37% 0.0829 -0.1696)
OKLCHoklch(47.37% 0.189 296)
XYZxyz(15.7849, 9.2502, 45.7444)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938B7 #86B738
analogous
#3846B7 #6938B7 #A938B7
triadic
#6938B7 #B76938 #38B769
tetradic
#6938B7 #B73846 #86B738 #38B7A9
square
#6938B7 #B73846 #86B738 #38B7A9
split-complementary
#6938B7 #B7A938 #46B738
monochromatic
#331B59 #4E2A88 #6938B7 #895ECE #AC8DDC

Accessibility & contrast

On white

7.37
#6938B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#6938B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6938B7#FFFFFF#000000##FFFFFF
##6938B71.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#0054B4
Tritanopia (blue-blind)
#545773
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6938b7;
/* rgb */ color: rgb(105, 56, 183);
/* oklch */ color: oklch(47.4% 0.189 296.0);
Tailwind
colors: {
  custom: {
    50: '#9a72cd',
    500: '#6938b7',
    950: '#000000',
  },
}
SCSS
$custom: #6938b7;
$custom-light: #9a72cd;
$custom-dark: #000000;
JSON
{
  "hex": "#6938b7",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 263.15,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47371,
    "c": 0.18881,
    "h": 296
  },
  "luminance": 0.09251
}

Semantic roles & 50–950 ramp

primary
#6938B7
secondary
#ADC784
accent
#DD4BA4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6938B7

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

Preview Lab → · Contrast checker → · Palette generator →

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