#6827B1#6827B1

#6827B1 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.8% C 0.201 H 299.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#6827B1
RGBrgb(104, 39, 177)
HSLhsl(268, 64%, 42%)
HSVhsv(268, 78%, 69%)
CMYKcmyk(41.2%, 78%, 0%, 30.6%)
CIE-LABlab(33.07, 54.86, -61.32)
CIE-LCHlch(33.07, 82.28, 311.81°)
OKLaboklab(44.79% 0.0984 -0.1754)
OKLCHoklch(44.79% 0.201 299.3)
XYZxyz(14.3682, 7.5682, 42.2903)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6827B1 #70B127
analogous
#272BB1 #6827B1 #AD27B1
triadic
#6827B1 #B16827 #27B168
tetradic
#6827B1 #B1272B #70B127 #27B1AD
square
#6827B1 #B1272B #70B127 #27B1AD
split-complementary
#6827B1 #B1AD27 #2BB127
monochromatic
#2D114D #4B1C7F #6827B1 #8640D5 #A672E0

Accessibility & contrast

On white

8.35
#6827B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#6827B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6827B1
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6827B1#FFFFFF#000000##FFFFFF
##6827B11.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#564C6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6827b1;
/* rgb */ color: rgb(104, 39, 177);
/* oklch */ color: oklch(44.8% 0.201 299.3);
Tailwind
colors: {
  custom: {
    50: '#9a69c9',
    500: '#6827b1',
    950: '#000000',
  },
}
SCSS
$custom: #6827b1;
$custom-light: #9a69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6827b1",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 268.261,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44793,
    "c": 0.20109,
    "h": 299.3
  },
  "luminance": 0.07568
}

Semantic roles & 50–950 ramp

primary
#6827B1
secondary
#9DC76D
accent
#E74199
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6827B1

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

Preview Lab → · Contrast checker → · Palette generator →

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