#6845DB#6845DB

#6845DB is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.0% C 0.215 H 287.0°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#6845DB
RGBrgb(104, 69, 219)
HSLhsl(254, 68%, 56%)
HSVhsv(254, 68%, 86%)
CMYKcmyk(52.5%, 68.5%, 0%, 14.1%)
CIE-LABlab(41.71, 51.69, -71.70)
CIE-LCHlch(41.71, 88.39, 305.79°)
OKLaboklab(52% 0.0632 -0.206)
OKLCHoklch(52% 0.215 287)
XYZxyz(20.6194, 12.3127, 68.2942)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845DB #B8DB45
analogous
#456DDB #6845DB #B345DB
triadic
#6845DB #DB6845 #45DB68
tetradic
#6845DB #DB456D #B8DB45 #45DBB3
square
#6845DB #DB456D #B8DB45 #45DBB3
split-complementary
#6845DB #DBB345 #6DDB45
monochromatic
#351B8B #4925BE #6845DB #9278E5 #BBACEF

Accessibility & contrast

On white

6.06
#6845DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#6845DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845DB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845DB#FFFFFF#000000##FFFFFF
##6845DB1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#005ED8
Tritanopia (blue-blind)
#3A6C8B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6845db;
/* rgb */ color: rgb(104, 69, 219);
/* oklch */ color: oklch(52.0% 0.215 287.0);
Tailwind
colors: {
  custom: {
    50: '#9d7be7',
    500: '#6845db',
    950: '#000000',
  },
}
SCSS
$custom: #6845db;
$custom-light: #9d7be7;
$custom-dark: #000000;
JSON
{
  "hex": "#6845db",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 254,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51998,
    "c": 0.21548,
    "h": 287
  },
  "luminance": 0.12314
}

Semantic roles & 50–950 ramp

primary
#6845DB
secondary
#CEDD9F
accent
#EA3DC2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6845DB

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

Preview Lab → · Contrast checker → · Palette generator →

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