#6A38DB#6A38DB

#6A38DB is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.5% C 0.229 H 289.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#6A38DB
RGBrgb(106, 56, 219)
HSLhsl(258, 69%, 54%)
HSVhsv(258, 74%, 86%)
CMYKcmyk(51.6%, 74.4%, 0%, 14.1%)
CIE-LABlab(39.59, 58.47, -75.16)
CIE-LCHlch(39.59, 95.23, 307.88°)
OKLaboklab(50.54% 0.0767 -0.216)
OKLCHoklch(50.54% 0.229 289.5)
XYZxyz(20.1405, 11.0061, 68.0673)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38DB #A9DB38
analogous
#3858DB #6A38DB #BC38DB
triadic
#6A38DB #DB6A38 #38DB6A
tetradic
#6A38DB #DB3858 #A9DB38 #38DBBC
square
#6A38DB #DB3858 #A9DB38 #38DBBC
split-complementary
#6A38DB #DBBC38 #58DB38
monochromatic
#381781 #4E21B5 #6A38DB #916CE4 #B8A0EE

Accessibility & contrast

On white

6.56
#6A38DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6A38DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A38DB
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38DB#FFFFFF#000000##FFFFFF
##6A38DB1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a38db;
/* rgb */ color: rgb(106, 56, 219);
/* oklch */ color: oklch(50.5% 0.229 289.5);
Tailwind
colors: {
  custom: {
    50: '#9f74e7',
    500: '#6a38db',
    950: '#000000',
  },
}
SCSS
$custom: #6a38db;
$custom-light: #9f74e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38db",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 258.405,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50543,
    "c": 0.22923,
    "h": 289.5
  },
  "luminance": 0.11007
}

Semantic roles & 50–950 ramp

primary
#6A38DB
secondary
#C5DA95
accent
#EC3CB6
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6A38DB

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

Preview Lab → · Contrast checker → · Palette generator →

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