#6938DB#6938DB

#6938DB is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.4% C 0.229 H 289.1°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#6938DB
RGBrgb(105, 56, 219)
HSLhsl(258, 69%, 54%)
HSVhsv(258, 74%, 86%)
CMYKcmyk(52.1%, 74.4%, 0%, 14.1%)
CIE-LABlab(39.49, 58.33, -75.34)
CIE-LCHlch(39.49, 95.28, 307.75°)
OKLaboklab(50.45% 0.0752 -0.2166)
OKLCHoklch(50.45% 0.229 289.1)
XYZxyz(20.0223, 10.9451, 68.0617)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938DB #AADB38
analogous
#3859DB #6938DB #BB38DB
triadic
#6938DB #DB6938 #38DB69
tetradic
#6938DB #DB3859 #AADB38 #38DBBB
square
#6938DB #DB3859 #AADB38 #38DBBB
split-complementary
#6938DB #DBBB38 #59DB38
monochromatic
#371781 #4D21B5 #6938DB #906CE4 #B7A0EE

Accessibility & contrast

On white

6.58
#6938DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6938DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6938DB
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6938DB#FFFFFF#000000##FFFFFF
##6938DB1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E0
Deuteranopia (green-blind)
#0059D8
Tritanopia (blue-blind)
#3E6587
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6938db;
/* rgb */ color: rgb(105, 56, 219);
/* oklch */ color: oklch(50.4% 0.229 289.1);
Tailwind
colors: {
  custom: {
    50: '#9f74e7',
    500: '#6938db',
    950: '#000000',
  },
}
SCSS
$custom: #6938db;
$custom-light: #9f74e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6938db",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 258.037,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50447,
    "c": 0.22925,
    "h": 289.1
  },
  "luminance": 0.10946
}

Semantic roles & 50–950 ramp

primary
#6938DB
secondary
#C5DA95
accent
#EC3CB7
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6938DB

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

Preview Lab → · Contrast checker → · Palette generator →

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