#6938AF#6938AF

#6938AF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.180 H 297.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#6938AF
RGBrgb(105, 56, 175)
HSLhsl(265, 52%, 45%)
HSVhsv(265, 68%, 69%)
CMYKcmyk(40%, 68%, 0%, 31.4%)
CIE-LABlab(35.84, 46.60, -55.61)
CIE-LCHlch(35.84, 72.55, 309.96°)
OKLaboklab(46.74% 0.0842 -0.1586)
OKLCHoklch(46.74% 0.18 297.9)
XYZxyz(14.9758, 8.9265, 41.4831)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938AF #7EAF38
analogous
#3842AF #6938AF #A438AF
triadic
#6938AF #AF6938 #38AF69
tetradic
#6938AF #AF3842 #7EAF38 #38AFA4
square
#6938AF #AF3842 #7EAF38 #38AFA4
split-complementary
#6938AF #AFA438 #42AF38
monochromatic
#311A52 #4D2981 #6938AF #885ACA #AA88D9

Accessibility & contrast

On white

7.54
#6938AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6938AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6938AF
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6938AF#FFFFFF#000000##FFFFFF
##6938AF1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#58546F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6938af;
/* rgb */ color: rgb(105, 56, 175);
/* oklch */ color: oklch(46.7% 0.180 297.9);
Tailwind
colors: {
  custom: {
    50: '#9972c8',
    500: '#6938af',
    950: '#000000',
  },
}
SCSS
$custom: #6938af;
$custom-light: #9972c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6938af",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 264.706,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46735,
    "c": 0.17958,
    "h": 297.9
  },
  "luminance": 0.08927
}

Semantic roles & 50–950 ramp

primary
#6938AF
secondary
#A7C380
accent
#DB4DA0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6938AF

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

Preview Lab → · Contrast checker → · Palette generator →

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