#6831AF#6831AF

#6831AF is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.188 H 298.5°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#6831AF
RGBrgb(104, 49, 175)
HSLhsl(266, 56%, 44%)
HSVhsv(266, 72%, 69%)
CMYKcmyk(40.6%, 72%, 0%, 31.4%)
CIE-LABlab(34.47, 49.90, -57.85)
CIE-LCHlch(34.47, 76.40, 310.78°)
OKLaboklab(45.73% 0.0899 -0.1652)
OKLCHoklch(45.73% 0.188 298.5)
XYZxyz(14.5431, 8.2346, 41.3724)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831AF #78AF31
analogous
#3139AF #6831AF #A731AF
triadic
#6831AF #AF6831 #31AF68
tetradic
#6831AF #AF3139 #78AF31 #31AFA7
square
#6831AF #AF3139 #78AF31 #31AFA7
split-complementary
#6831AF #AFA731 #39AF31
monochromatic
#2F164F #4C247F #6831AF #874FCE #A77FDB

Accessibility & contrast

On white

7.93
#6831AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6831AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831AF
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831AF#FFFFFF#000000##FFFFFF
##6831AF1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#57506D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6831af;
/* rgb */ color: rgb(104, 49, 175);
/* oklch */ color: oklch(45.7% 0.188 298.5);
Tailwind
colors: {
  custom: {
    50: '#996ec8',
    500: '#6831af',
    950: '#000000',
  },
}
SCSS
$custom: #6831af;
$custom-light: #996ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#6831af",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 266.19,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45727,
    "c": 0.18811,
    "h": 298.5
  },
  "luminance": 0.08235
}

Semantic roles & 50–950 ramp

primary
#6831AF
secondary
#A3C478
accent
#E0489E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6831AF

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

Preview Lab → · Contrast checker → · Palette generator →

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