#6845CB#6845CB

#6845CB is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.196 H 289.5°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#6845CB
RGBrgb(104, 69, 203)
HSLhsl(256, 56%, 53%)
HSVhsv(256, 66%, 80%)
CMYKcmyk(48.8%, 66%, 0%, 20.4%)
CIE-LABlab(40.43, 47.14, -64.59)
CIE-LCHlch(40.43, 79.96, 306.12°)
OKLaboklab(50.68% 0.0656 -0.1851)
OKLCHoklch(50.68% 0.196 289.5)
XYZxyz(18.6134, 11.5103, 57.7293)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845CB #A8CB45
analogous
#4565CB #6845CB #AB45CB
triadic
#6845CB #CB6845 #45CB68
tetradic
#6845CB #CB4565 #A8CB45 #45CBAB
square
#6845CB #CB4565 #A8CB45 #45CBAB
split-complementary
#6845CB #CBAB45 #65CB45
monochromatic
#372175 #4D2EA5 #6845CB #8F75D8 #B6A5E6

Accessibility & contrast

On white

6.36
#6845CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6845CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845CB
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845CB#FFFFFF#000000##FFFFFF
##6845CB1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#476682
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6845cb;
/* rgb */ color: rgb(104, 69, 203);
/* oklch */ color: oklch(50.7% 0.196 289.5);
Tailwind
colors: {
  custom: {
    50: '#9b7bdc',
    500: '#6845cb',
    950: '#000000',
  },
}
SCSS
$custom: #6845cb;
$custom-light: #9b7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#6845cb",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 255.672,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5068,
    "c": 0.19638,
    "h": 289.5
  },
  "luminance": 0.11511
}

Semantic roles & 50–950 ramp

primary
#6845CB
secondary
#C4D399
accent
#E048B8
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6845CB

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

Preview Lab → · Contrast checker → · Palette generator →

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