#6831C2#6831C2

#6831C2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.209 H 294.2°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#6831C2
RGBrgb(104, 49, 194)
HSLhsl(263, 60%, 48%)
HSVhsv(263, 75%, 76%)
CMYKcmyk(46.4%, 74.7%, 0%, 23.9%)
CIE-LABlab(36.05, 54.81, -66.49)
CIE-LCHlch(36.05, 86.17, 309.50°)
OKLaboklab(47.34% 0.0856 -0.1906)
OKLCHoklch(47.34% 0.209 294.2)
XYZxyz(16.5422, 9.0342, 51.9007)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831C2 #8BC231
analogous
#3142C2 #6831C2 #B131C2
triadic
#6831C2 #C26831 #31C268
tetradic
#6831C2 #C23142 #8BC231 #31C2B1
square
#6831C2 #C23142 #8BC231 #31C2B1
split-complementary
#6831C2 #C2B131 #42C231
monochromatic
#341860 #4E2591 #6831C2 #895BD6 #AC8CE2

Accessibility & contrast

On white

7.48
#6831C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6831C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831C2
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831C2#FFFFFF#000000##FFFFFF
##6831C21.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#0052BF
Tritanopia (blue-blind)
#4D5877
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6831c2;
/* rgb */ color: rgb(104, 49, 194);
/* oklch */ color: oklch(47.3% 0.209 294.2);
Tailwind
colors: {
  custom: {
    50: '#9b6fd6',
    500: '#6831c2',
    950: '#000000',
  },
}
SCSS
$custom: #6831c2;
$custom-light: #9b6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#6831c2",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 262.759,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47335,
    "c": 0.20896,
    "h": 294.2
  },
  "luminance": 0.09035
}

Semantic roles & 50–950 ramp

primary
#6831C2
secondary
#B0CC83
accent
#E345A7
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6831C2

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

Preview Lab → · Contrast checker → · Palette generator →

#6831C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva