#6938CD#6938CD

#6938CD is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.214 H 291.6°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#6938CD
RGBrgb(105, 56, 205)
HSLhsl(260, 60%, 51%)
HSVhsv(260, 73%, 80%)
CMYKcmyk(48.8%, 72.7%, 0%, 19.6%)
CIE-LABlab(38.27, 54.58, -69.27)
CIE-LCHlch(38.27, 88.18, 308.24°)
OKLaboklab(49.21% 0.0786 -0.1988)
OKLCHoklch(49.21% 0.214 291.6)
XYZxyz(18.2562, 10.2387, 58.7601)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938CD #9CCD38
analogous
#3851CD #6938CD #B438CD
triadic
#6938CD #CD6938 #38CD69
tetradic
#6938CD #CD3851 #9CCD38 #38CDB4
square
#6938CD #CD3851 #9CCD38 #38CDB4
split-complementary
#6938CD #CDB438 #51CD38
monochromatic
#371C6F #4F28A0 #6938CD #8E69D9 #B39AE6

Accessibility & contrast

On white

6.89
#6938CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6938CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6938CD
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6938CD#FFFFFF#000000##FFFFFF
##6938CD1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#48607F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6938cd;
/* rgb */ color: rgb(105, 56, 205);
/* oklch */ color: oklch(49.2% 0.214 291.6);
Tailwind
colors: {
  custom: {
    50: '#9d73dd',
    500: '#6938cd',
    950: '#000000',
  },
}
SCSS
$custom: #6938cd;
$custom-light: #9d73dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6938cd",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 259.732,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49213,
    "c": 0.21373,
    "h": 291.6
  },
  "luminance": 0.10239
}

Semantic roles & 50–950 ramp

primary
#6938CD
secondary
#BCD18F
accent
#E345AF
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6938CD

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

Preview Lab → · Contrast checker → · Palette generator →

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