#6938B2#6938B2

#6938B2 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.0% C 0.183 H 297.2°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#6938B2
RGBrgb(105, 56, 178)
HSLhsl(264, 52%, 46%)
HSVhsv(264, 69%, 70%)
CMYKcmyk(41%, 68.5%, 0%, 30.2%)
CIE-LABlab(36.07, 47.39, -57.01)
CIE-LCHlch(36.07, 74.14, 309.73°)
OKLaboklab(46.97% 0.0837 -0.1628)
OKLCHoklch(46.97% 0.183 297.2)
XYZxyz(15.2737, 9.0457, 43.0521)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938B2 #81B238
analogous
#3844B2 #6938B2 #A638B2
triadic
#6938B2 #B26938 #38B269
tetradic
#6938B2 #B23844 #81B238 #38B2A6
square
#6938B2 #B23844 #81B238 #38B2A6
split-complementary
#6938B2 #B2A638 #44B238
monochromatic
#321B55 #4E2983 #6938B2 #895CCC #AA8ADA

Accessibility & contrast

On white

7.48
#6938B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6938B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6938B2
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6938B2#FFFFFF#000000##FFFFFF
##6938B21.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0053AF
Tritanopia (blue-blind)
#575570
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6938b2;
/* rgb */ color: rgb(105, 56, 178);
/* oklch */ color: oklch(47.0% 0.183 297.2);
Tailwind
colors: {
  custom: {
    50: '#9a72ca',
    500: '#6938b2',
    950: '#000000',
  },
}
SCSS
$custom: #6938b2;
$custom-light: #9a72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6938b2",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 264.098,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46971,
    "c": 0.18305,
    "h": 297.2
  },
  "luminance": 0.09046
}

Semantic roles & 50–950 ramp

primary
#6938B2
secondary
#AAC581
accent
#DC4CA2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6938B2

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

Preview Lab → · Contrast checker → · Palette generator →

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