#6938CC#6938CC

#6938CC is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.213 H 291.7°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#6938CC
RGBrgb(105, 56, 204)
HSLhsl(260, 59%, 51%)
HSVhsv(260, 73%, 80%)
CMYKcmyk(48.5%, 72.5%, 0%, 20%)
CIE-LABlab(38.18, 54.31, -68.83)
CIE-LCHlch(38.18, 87.67, 308.28°)
OKLaboklab(49.13% 0.0788 -0.1975)
OKLCHoklch(49.13% 0.213 291.7)
XYZxyz(18.1359, 10.1906, 58.1264)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938CC #9BCC38
analogous
#3851CC #6938CC #B338CC
triadic
#6938CC #CC6938 #38CC69
tetradic
#6938CC #CC3851 #9BCC38 #38CCB3
square
#6938CC #CC3851 #9BCC38 #38CCB3
split-complementary
#6938CC #CCB338 #51CC38
monochromatic
#371C6E #50299E #6938CC #8E69D8 #B299E5

Accessibility & contrast

On white

6.91
#6938CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6938CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6938CC
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6938CC#FFFFFF#000000##FFFFFF
##6938CC1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#495F7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6938cc;
/* rgb */ color: rgb(105, 56, 204);
/* oklch */ color: oklch(49.1% 0.213 291.7);
Tailwind
colors: {
  custom: {
    50: '#9d73dd',
    500: '#6938cc',
    950: '#000000',
  },
}
SCSS
$custom: #6938cc;
$custom-light: #9d73dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6938cc",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 259.865,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49127,
    "c": 0.21261,
    "h": 291.7
  },
  "luminance": 0.10191
}

Semantic roles & 50–950 ramp

primary
#6938CC
secondary
#BBD18F
accent
#E245AE
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6938CC

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

Preview Lab → · Contrast checker → · Palette generator →

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