#6938C6#6938C6

#6938C6 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.206 H 292.9°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#6938C6
RGBrgb(105, 56, 198)
HSLhsl(261, 56%, 50%)
HSVhsv(261, 72%, 78%)
CMYKcmyk(47%, 71.7%, 0%, 22.4%)
CIE-LABlab(37.68, 52.70, -66.16)
CIE-LCHlch(37.68, 84.59, 308.54°)
OKLaboklab(48.61% 0.0801 -0.1897)
OKLCHoklch(48.61% 0.206 292.9)
XYZxyz(17.4301, 9.9083, 54.4092)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938C6 #95C638
analogous
#384EC6 #6938C6 #B038C6
triadic
#6938C6 #C66938 #38C669
tetradic
#6938C6 #C6384E #95C638 #38C6B0
square
#6938C6 #C6384E #95C638 #38C6B0
split-complementary
#6938C6 #C6B038 #4EC638
monochromatic
#361D67 #502B96 #6938C6 #8D67D4 #B197E2

Accessibility & contrast

On white

7.04
#6938C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6938C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6938C6
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6938C6#FFFFFF#000000##FFFFFF
##6938C61.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACA
Deuteranopia (green-blind)
#0056C3
Tritanopia (blue-blind)
#4D5D7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6938c6;
/* rgb */ color: rgb(105, 56, 198);
/* oklch */ color: oklch(48.6% 0.206 292.9);
Tailwind
colors: {
  custom: {
    50: '#9c73d8',
    500: '#6938c6',
    950: '#000000',
  },
}
SCSS
$custom: #6938c6;
$custom-light: #9c73d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6938c6",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 260.704,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48614,
    "c": 0.20587,
    "h": 292.9
  },
  "luminance": 0.09909
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6938C6

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

Preview Lab → · Contrast checker → · Palette generator →

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