#6827B3#6827B3

#6827B3 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 45.0% C 0.203 H 298.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#6827B3
RGBrgb(104, 39, 179)
HSLhsl(268, 64%, 43%)
HSVhsv(268, 78%, 70%)
CMYKcmyk(41.9%, 78.2%, 0%, 29.8%)
CIE-LABlab(33.24, 55.35, -62.23)
CIE-LCHlch(33.24, 83.28, 311.65°)
OKLaboklab(44.97% 0.0978 -0.1781)
OKLCHoklch(44.97% 0.203 298.8)
XYZxyz(14.5690, 7.6486, 43.3478)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6827B3 #72B327
analogous
#272CB3 #6827B3 #AE27B3
triadic
#6827B3 #B36827 #27B368
tetradic
#6827B3 #B3272C #72B327 #27B3AE
square
#6827B3 #B3272C #72B327 #27B3AE
split-complementary
#6827B3 #B3AE27 #2CB327
monochromatic
#2E114E #4B1C81 #6827B3 #8641D6 #A674E1

Accessibility & contrast

On white

8.30
#6827B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6827B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6827B3
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6827B3#FFFFFF#000000##FFFFFF
##6827B31.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#554D6D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6827b3;
/* rgb */ color: rgb(104, 39, 179);
/* oklch */ color: oklch(45.0% 0.203 298.8);
Tailwind
colors: {
  custom: {
    50: '#9a69cb',
    500: '#6827b3',
    950: '#000000',
  },
}
SCSS
$custom: #6827b3;
$custom-light: #9a69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6827b3",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 267.857,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44967,
    "c": 0.20316,
    "h": 298.8
  },
  "luminance": 0.07649
}

Semantic roles & 50–950 ramp

primary
#6827B3
secondary
#9EC86E
accent
#E7419A
background
#FAF6FC
surface
#F3EBF9
border
#CDC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6827B3

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

Preview Lab → · Contrast checker → · Palette generator →

#6827B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva