#6831A7#6831A7

#6831A7 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.179 H 300.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#6831A7
RGBrgb(104, 49, 167)
HSLhsl(268, 55%, 42%)
HSVhsv(268, 71%, 65%)
CMYKcmyk(37.7%, 70.7%, 0%, 34.5%)
CIE-LABlab(33.84, 47.86, -54.09)
CIE-LCHlch(33.84, 72.22, 311.51°)
OKLaboklab(45.08% 0.0914 -0.1542)
OKLCHoklch(45.08% 0.179 300.6)
XYZxyz(13.7806, 7.9296, 37.3563)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831A7 #70A731
analogous
#3135A7 #6831A7 #A331A7
triadic
#6831A7 #A76831 #31A768
tetradic
#6831A7 #A73135 #70A731 #31A7A3
square
#6831A7 #A73135 #70A731 #31A7A3
split-complementary
#6831A7 #A7A331 #35A731
monochromatic
#2D1548 #4B2378 #6831A7 #864BCA #A67AD8

Accessibility & contrast

On white

8.12
#6831A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6831A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831A7
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831A7#FFFFFF#000000##FFFFFF
##6831A71.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#5A4D68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6831a7;
/* rgb */ color: rgb(104, 49, 167);
/* oklch */ color: oklch(45.1% 0.179 300.6);
Tailwind
colors: {
  custom: {
    50: '#986ec2',
    500: '#6831a7',
    950: '#000000',
  },
}
SCSS
$custom: #6831a7;
$custom-light: #986ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#6831a7",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 267.966,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45081,
    "c": 0.17922,
    "h": 300.6
  },
  "luminance": 0.0793
}

Semantic roles & 50–950 ramp

primary
#6831A7
secondary
#9DC173
accent
#DE4A99
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6831A7

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

Preview Lab → · Contrast checker → · Palette generator →

#6831A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva