#6731AF#6731AF

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

Color values

HEX#6731AF
RGBrgb(103, 49, 175)
HSLhsl(266, 56%, 44%)
HSVhsv(266, 72%, 69%)
CMYKcmyk(41.1%, 72%, 0%, 31.4%)
CIE-LABlab(34.34, 49.72, -58.05)
CIE-LCHlch(34.34, 76.43, 310.58°)
OKLaboklab(45.61% 0.0884 -0.1659)
OKLCHoklch(45.61% 0.188 298.1)
XYZxyz(14.4277, 8.1751, 41.3669)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731AF #79AF31
analogous
#313AAF #6731AF #A631AF
triadic
#6731AF #AF6731 #31AF67
tetradic
#6731AF #AF313A #79AF31 #31AFA6
square
#6731AF #AF313A #79AF31 #31AFA6
split-complementary
#6731AF #AFA631 #3AAF31
monochromatic
#2F164F #4B247F #6731AF #864FCE #A77FDB

Accessibility & contrast

On white

7.97
#6731AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6731AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6731AF
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6731AF#FFFFFF#000000##FFFFFF
##6731AF1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#55506D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6731af;
/* rgb */ color: rgb(103, 49, 175);
/* oklch */ color: oklch(45.6% 0.188 298.1);
Tailwind
colors: {
  custom: {
    50: '#996ec8',
    500: '#6731af',
    950: '#000000',
  },
}
SCSS
$custom: #6731af;
$custom-light: #996ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#6731af",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 265.714,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45613,
    "c": 0.18797,
    "h": 298.1
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#6731AF
secondary
#A3C478
accent
#E0489F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6731AF

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

Preview Lab → · Contrast checker → · Palette generator →

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