#6948BF#6948BF

#6948BF is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.3% C 0.178 H 291.5°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6948BF
RGBrgb(105, 72, 191)
HSLhsl(257, 48%, 52%)
HSVhsv(257, 62%, 75%)
CMYKcmyk(45%, 62.3%, 0%, 25.1%)
CIE-LABlab(40.24, 42.26, -57.90)
CIE-LCHlch(40.24, 71.68, 306.12°)
OKLaboklab(50.29% 0.065 -0.1654)
OKLCHoklch(50.29% 0.178 291.5)
XYZxyz(17.5444, 11.3990, 50.5559)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6948BF #9EBF48
analogous
#4863BF #6948BF #A548BF
triadic
#6948BF #BF6948 #48BF69
tetradic
#6948BF #BF4863 #9EBF48 #48BFA5
square
#6948BF #BF4863 #9EBF48 #48BFA5
split-complementary
#6948BF #BFA548 #63BF48
monochromatic
#372468 #4F3496 #6948BF #8E75CF #B3A3DF

Accessibility & contrast

On white

6.40
#6948BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6948BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6948BF
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6948BF#FFFFFF#000000##FFFFFF
##6948BF1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#50647D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6948bf;
/* rgb */ color: rgb(105, 72, 191);
/* oklch */ color: oklch(50.3% 0.178 291.5);
Tailwind
colors: {
  custom: {
    50: '#9a7dd3',
    500: '#6948bf',
    950: '#000000',
  },
}
SCSS
$custom: #6948bf;
$custom-light: #9a7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#6948bf",
  "rgb": {
    "r": 105,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 256.639,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50288,
    "c": 0.17773,
    "h": 291.5
  },
  "luminance": 0.114
}

Semantic roles & 50–950 ramp

primary
#6948BF
secondary
#BDCC97
accent
#D850B2
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0F0A14
muted
#7E7C83

Preview Lab

Preview with #6948BF

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

Preview Lab → · Contrast checker → · Palette generator →

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