#6827B4#6827B4

#6827B4 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.204 H 298.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#6827B4
RGBrgb(104, 39, 180)
HSLhsl(268, 64%, 43%)
HSVhsv(268, 78%, 71%)
CMYKcmyk(42.2%, 78.3%, 0%, 29.4%)
CIE-LABlab(33.33, 55.59, -62.69)
CIE-LCHlch(33.33, 83.78, 311.57°)
OKLaboklab(45.05% 0.0976 -0.1794)
OKLCHoklch(45.05% 0.204 298.5)
XYZxyz(14.6705, 7.6892, 43.8824)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6827B4 #73B427
analogous
#272CB4 #6827B4 #AF27B4
triadic
#6827B4 #B46827 #27B468
tetradic
#6827B4 #B4272C #73B427 #27B4AF
square
#6827B4 #B4272C #73B427 #27B4AF
split-complementary
#6827B4 #B4AF27 #2CB427
monochromatic
#2E114F #4B1C82 #6827B4 #8642D6 #A674E1

Accessibility & contrast

On white

8.27
#6827B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6827B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6827B4
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6827B4#FFFFFF#000000##FFFFFF
##6827B41.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#554E6D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6827b4;
/* rgb */ color: rgb(104, 39, 180);
/* oklch */ color: oklch(45.1% 0.204 298.5);
Tailwind
colors: {
  custom: {
    50: '#9a69cc',
    500: '#6827b4',
    950: '#000000',
  },
}
SCSS
$custom: #6827b4;
$custom-light: #9a69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6827b4",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 180
  },
  "hsl": {
    "h": 267.66,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45054,
    "c": 0.20419,
    "h": 298.5
  },
  "luminance": 0.07689
}

Semantic roles & 50–950 ramp

primary
#6827B4
secondary
#9FC86F
accent
#E7409A
background
#FAF6FC
surface
#F3EBF9
border
#CDC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6827B4

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

Preview Lab → · Contrast checker → · Palette generator →

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