#6948EB#6948EB

#6948EB is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.9% C 0.231 H 284.9°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#6948EB
RGBrgb(105, 72, 235)
HSLhsl(252, 80%, 60%)
HSVhsv(252, 69%, 92%)
CMYKcmyk(55.3%, 69.4%, 0%, 7.8%)
CIE-LABlab(43.70, 54.83, -77.53)
CIE-LCHlch(43.70, 94.96, 305.27°)
OKLaboklab(53.86% 0.0593 -0.2231)
OKLCHoklch(53.86% 0.231 284.9)
XYZxyz(23.1339, 13.6348, 79.9939)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6948EB #CAEB48
analogous
#4879EB #6948EB #BA48EB
triadic
#6948EB #EB6948 #48EB69
tetradic
#6948EB #EB4879 #CAEB48 #48EBBA
square
#6948EB #EB4879 #CAEB48 #48EBBA
split-complementary
#6948EB #EBBA48 #79EB48
monochromatic
#3012A6 #4018DE #6948EB #967FF1 #C3B6F7

Accessibility & contrast

On white

5.63
#6948EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#6948EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6948EB
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6948EB#FFFFFF#000000##FFFFFF
##6948EB1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF0
Deuteranopia (green-blind)
#0062E8
Tritanopia (blue-blind)
#2B7394
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #6948eb;
/* rgb */ color: rgb(105, 72, 235);
/* oklch */ color: oklch(53.9% 0.231 284.9);
Tailwind
colors: {
  custom: {
    50: '#a07ef3',
    500: '#6948eb',
    950: '#000000',
  },
}
SCSS
$custom: #6948eb;
$custom-light: #a07ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#6948eb",
  "rgb": {
    "r": 105,
    "g": 72,
    "b": 235
  },
  "hsl": {
    "h": 252.147,
    "s": 80.296,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53857,
    "c": 0.23081,
    "h": 284.9
  },
  "luminance": 0.13636
}

Semantic roles & 50–950 ramp

primary
#6948EB
secondary
#DAE7A8
accent
#DD09B2
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #6948EB

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

Preview Lab → · Contrast checker → · Palette generator →

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