#6845CA#6845CA

#6845CA is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.6% C 0.195 H 289.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#6845CA
RGBrgb(104, 69, 202)
HSLhsl(256, 56%, 53%)
HSVhsv(256, 66%, 79%)
CMYKcmyk(48.5%, 65.8%, 0%, 20.8%)
CIE-LABlab(40.35, 46.85, -64.13)
CIE-LCHlch(40.35, 79.42, 306.15°)
OKLaboklab(50.6% 0.0657 -0.1838)
OKLCHoklch(50.6% 0.195 289.7)
XYZxyz(18.4947, 11.4628, 57.1037)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845CA #A7CA45
analogous
#4564CA #6845CA #AA45CA
triadic
#6845CA #CA6845 #45CA68
tetradic
#6845CA #CA4564 #A7CA45 #45CAAA
square
#6845CA #CA4564 #A7CA45 #45CAAA
split-complementary
#6845CA #CAAA45 #64CA45
monochromatic
#372174 #4D2FA3 #6845CA #8F75D8 #B5A4E5

Accessibility & contrast

On white

6.38
#6845CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6845CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845CA
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845CA#FFFFFF#000000##FFFFFF
##6845CA1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#476681
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6845ca;
/* rgb */ color: rgb(104, 69, 202);
/* oklch */ color: oklch(50.6% 0.195 289.7);
Tailwind
colors: {
  custom: {
    50: '#9b7bdb',
    500: '#6845ca',
    950: '#000000',
  },
}
SCSS
$custom: #6845ca;
$custom-light: #9b7bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#6845ca",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 255.789,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.506,
    "c": 0.19516,
    "h": 289.7
  },
  "luminance": 0.11464
}

Semantic roles & 50–950 ramp

primary
#6845CA
secondary
#C3D299
accent
#DF49B7
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6845CA

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

Preview Lab → · Contrast checker → · Palette generator →

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