#6843E7#6843E7

#6843E7 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.232 H 285.7°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#6843E7
RGBrgb(104, 67, 231)
HSLhsl(254, 77%, 58%)
HSVhsv(254, 71%, 91%)
CMYKcmyk(55%, 71%, 0%, 9.4%)
CIE-LABlab(42.35, 56.13, -77.49)
CIE-LCHlch(42.35, 95.68, 305.92°)
OKLaboklab(52.76% 0.0626 -0.223)
OKLCHoklch(52.76% 0.232 285.7)
XYZxyz(22.1355, 12.7256, 76.8757)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6843E7 #C2E743
analogous
#4370E7 #6843E7 #BA43E7
triadic
#6843E7 #E76843 #43E768
tetradic
#6843E7 #E74370 #C2E743 #43E7BA
square
#6843E7 #E74370 #C2E743 #43E7BA
split-complementary
#6843E7 #E7BA43 #70E743
monochromatic
#33149C #441BD2 #6843E7 #9479EE #BFB0F5

Accessibility & contrast

On white

5.92
#6843E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#6843E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6843E7
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6843E7#FFFFFF#000000##FFFFFF
##6843E71.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EC
Deuteranopia (green-blind)
#005FE4
Tritanopia (blue-blind)
#2D6F91
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6843e7;
/* rgb */ color: rgb(104, 67, 231);
/* oklch */ color: oklch(52.8% 0.232 285.7);
Tailwind
colors: {
  custom: {
    50: '#9f7bf0',
    500: '#6843e7',
    950: '#000000',
  },
}
SCSS
$custom: #6843e7;
$custom-light: #9f7bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#6843e7",
  "rgb": {
    "r": 104,
    "g": 67,
    "b": 231
  },
  "hsl": {
    "h": 253.537,
    "s": 77.358,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52764,
    "c": 0.23159,
    "h": 285.7
  },
  "luminance": 0.12727
}

Semantic roles & 50–950 ramp

primary
#6843E7
secondary
#D5E3A2
accent
#F434C9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6843E7

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

Preview Lab → · Contrast checker → · Palette generator →

#6843E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva