#6948E2#6948E2

#6948E2 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.1% C 0.220 H 286.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#6948E2
RGBrgb(105, 72, 226)
HSLhsl(253, 73%, 58%)
HSVhsv(253, 68%, 89%)
CMYKcmyk(53.5%, 68.1%, 0%, 11.4%)
CIE-LABlab(42.96, 52.26, -73.65)
CIE-LCHlch(42.96, 90.31, 305.35°)
OKLaboklab(53.09% 0.0608 -0.2117)
OKLCHoklch(53.09% 0.22 286)
XYZxyz(21.8664, 13.1278, 73.3185)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6948E2 #C1E248
analogous
#4874E2 #6948E2 #B648E2
triadic
#6948E2 #E26948 #48E269
tetradic
#6948E2 #E24874 #C1E248 #48E2B6
square
#6948E2 #E24874 #C1E248 #48E2B6
split-complementary
#6948E2 #E2B648 #74E248
monochromatic
#331898 #4520CC #6948E2 #947DEA #C0B2F3

Accessibility & contrast

On white

5.79
#6948E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#6948E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6948E2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6948E2#FFFFFF#000000##FFFFFF
##6948E21.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#0061DF
Tritanopia (blue-blind)
#36708F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6948e2;
/* rgb */ color: rgb(105, 72, 226);
/* oklch */ color: oklch(53.1% 0.220 286.0);
Tailwind
colors: {
  custom: {
    50: '#9f7dec',
    500: '#6948e2',
    950: '#000000',
  },
}
SCSS
$custom: #6948e2;
$custom-light: #9f7dec;
$custom-dark: #000000;
JSON
{
  "hex": "#6948e2",
  "rgb": {
    "r": 105,
    "g": 72,
    "b": 226
  },
  "hsl": {
    "h": 252.857,
    "s": 72.642,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5309,
    "c": 0.22026,
    "h": 286
  },
  "luminance": 0.13129
}

Semantic roles & 50–950 ramp

primary
#6948E2
secondary
#D4E1A4
accent
#EF38C8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #6948E2

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

Preview Lab → · Contrast checker → · Palette generator →

#6948E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva