#6827B2#6827B2

#6827B2 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.9% C 0.202 H 299.0°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#6827B2
RGBrgb(104, 39, 178)
HSLhsl(268, 64%, 43%)
HSVhsv(268, 78%, 70%)
CMYKcmyk(41.6%, 78.1%, 0%, 30.2%)
CIE-LABlab(33.15, 55.10, -61.78)
CIE-LCHlch(33.15, 82.78, 311.73°)
OKLaboklab(44.88% 0.0981 -0.1767)
OKLCHoklch(44.88% 0.202 299)
XYZxyz(14.4683, 7.6082, 42.8171)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6827B2 #71B227
analogous
#272BB2 #6827B2 #AE27B2
triadic
#6827B2 #B26827 #27B268
tetradic
#6827B2 #B2272B #71B227 #27B2AE
square
#6827B2 #B2272B #71B227 #27B2AE
split-complementary
#6827B2 #B2AE27 #2BB227
monochromatic
#2D114E #4B1C80 #6827B2 #8641D5 #A673E0

Accessibility & contrast

On white

8.33
#6827B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6827B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6827B2
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6827B2#FFFFFF#000000##FFFFFF
##6827B21.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#564D6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6827b2;
/* rgb */ color: rgb(104, 39, 178);
/* oklch */ color: oklch(44.9% 0.202 299.0);
Tailwind
colors: {
  custom: {
    50: '#9a69ca',
    500: '#6827b2',
    950: '#000000',
  },
}
SCSS
$custom: #6827b2;
$custom-light: #9a69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6827b2",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 268.058,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4488,
    "c": 0.20213,
    "h": 299
  },
  "luminance": 0.07608
}

Semantic roles & 50–950 ramp

primary
#6827B2
secondary
#9DC86D
accent
#E74199
background
#FAF6FC
surface
#F3EBF9
border
#CDC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6827B2

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

Preview Lab → · Contrast checker → · Palette generator →

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