#6830B2#6830B2

#6830B2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.193 H 297.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#6830B2
RGBrgb(104, 48, 178)
HSLhsl(266, 58%, 44%)
HSVhsv(266, 73%, 70%)
CMYKcmyk(41.6%, 73%, 0%, 30.2%)
CIE-LABlab(34.54, 51.14, -59.51)
CIE-LCHlch(34.54, 78.47, 310.67°)
OKLaboklab(45.86% 0.0902 -0.1701)
OKLCHoklch(45.86% 0.193 297.9)
XYZxyz(14.7997, 8.2711, 42.9276)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6830B2 #7AB230
analogous
#3039B2 #6830B2 #A930B2
triadic
#6830B2 #B26830 #30B268
tetradic
#6830B2 #B23039 #7AB230 #30B2A9
square
#6830B2 #B23039 #7AB230 #30B2A9
split-complementary
#6830B2 #B2A930 #39B230
monochromatic
#301652 #4C2382 #6830B2 #8750D0 #A880DD

Accessibility & contrast

On white

7.91
#6830B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6830B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6830B2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6830B2#FFFFFF#000000##FFFFFF
##6830B21.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#55516E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6830b2;
/* rgb */ color: rgb(104, 48, 178);
/* oklch */ color: oklch(45.9% 0.193 297.9);
Tailwind
colors: {
  custom: {
    50: '#9a6dca',
    500: '#6830b2',
    950: '#000000',
  },
}
SCSS
$custom: #6830b2;
$custom-light: #9a6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#6830b2",
  "rgb": {
    "r": 104,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 265.846,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45855,
    "c": 0.19257,
    "h": 297.9
  },
  "luminance": 0.08271
}

Semantic roles & 50–950 ramp

primary
#6830B2
secondary
#A4C678
accent
#E1479F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6830B2

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

Preview Lab → · Contrast checker → · Palette generator →

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