#6835B2#6835B2

#6835B2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.187 H 297.2°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#6835B2
RGBrgb(104, 53, 178)
HSLhsl(264, 54%, 45%)
HSVhsv(264, 70%, 70%)
CMYKcmyk(41.6%, 70.2%, 0%, 30.2%)
CIE-LABlab(35.41, 48.72, -58.10)
CIE-LCHlch(35.41, 75.82, 309.98°)
OKLaboklab(46.47% 0.0854 -0.166)
OKLCHoklch(46.47% 0.187 297.2)
XYZxyz(15.0158, 8.7033, 42.9996)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6835B2 #7FB235
analogous
#3540B2 #6835B2 #A635B2
triadic
#6835B2 #B26835 #35B268
tetradic
#6835B2 #B23540 #7FB235 #35B2A6
square
#6835B2 #B23540 #7FB235 #35B2A6
split-complementary
#6835B2 #B2A635 #40B235
monochromatic
#311954 #4C2783 #6835B2 #8757CD #A986DB

Accessibility & contrast

On white

7.66
#6835B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6835B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6835B2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6835B2#FFFFFF#000000##FFFFFF
##6835B21.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#555470
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6835b2;
/* rgb */ color: rgb(104, 53, 178);
/* oklch */ color: oklch(46.5% 0.187 297.2);
Tailwind
colors: {
  custom: {
    50: '#9970ca',
    500: '#6835b2',
    950: '#000000',
  },
}
SCSS
$custom: #6835b2;
$custom-light: #9970ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6835b2",
  "rgb": {
    "r": 104,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 264.48,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4647,
    "c": 0.18666,
    "h": 297.2
  },
  "luminance": 0.08704
}

Semantic roles & 50–950 ramp

primary
#6835B2
secondary
#A8C57E
accent
#DD4AA1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6835B2

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

Preview Lab → · Contrast checker → · Palette generator →

#6835B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva