#6B38DB#6B38DB

#6B38DB is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.6% C 0.229 H 289.9°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#6B38DB
RGBrgb(107, 56, 219)
HSLhsl(259, 69%, 54%)
HSVhsv(259, 74%, 86%)
CMYKcmyk(51.1%, 74.4%, 0%, 14.1%)
CIE-LABlab(39.69, 58.62, -74.99)
CIE-LCHlch(39.69, 95.18, 308.01°)
OKLaboklab(50.64% 0.0781 -0.2155)
OKLCHoklch(50.64% 0.229 289.9)
XYZxyz(20.2601, 11.0677, 68.0729)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38DB #A8DB38
analogous
#3857DB #6B38DB #BD38DB
triadic
#6B38DB #DB6B38 #38DB6B
tetradic
#6B38DB #DB3857 #A8DB38 #38DBBD
square
#6B38DB #DB3857 #A8DB38 #38DBBD
split-complementary
#6B38DB #DBBD38 #57DB38
monochromatic
#381781 #4F21B5 #6B38DB #926CE4 #B8A0EE

Accessibility & contrast

On white

6.53
#6B38DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6B38DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B38DB
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38DB#FFFFFF#000000##FFFFFF
##6B38DB1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E0
Deuteranopia (green-blind)
#005AD8
Tritanopia (blue-blind)
#426587
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6b38db;
/* rgb */ color: rgb(107, 56, 219);
/* oklch */ color: oklch(50.6% 0.229 289.9);
Tailwind
colors: {
  custom: {
    50: '#a074e7',
    500: '#6b38db',
    950: '#000000',
  },
}
SCSS
$custom: #6b38db;
$custom-light: #a074e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38db",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 258.773,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5064,
    "c": 0.2292,
    "h": 289.9
  },
  "luminance": 0.11069
}

Semantic roles & 50–950 ramp

primary
#6B38DB
secondary
#C4DA95
accent
#EC3CB5
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6B38DB

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

Preview Lab → · Contrast checker → · Palette generator →

#6B38DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva