#6738D2#6738D2

#6738D2 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.5% C 0.219 H 289.9°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#6738D2
RGBrgb(103, 56, 210)
HSLhsl(258, 63%, 52%)
HSVhsv(258, 73%, 82%)
CMYKcmyk(51%, 73.3%, 0%, 17.6%)
CIE-LABlab(38.49, 55.62, -71.81)
CIE-LCHlch(38.49, 90.83, 307.76°)
OKLaboklab(49.45% 0.0745 -0.2063)
OKLCHoklch(49.45% 0.219 289.9)
XYZxyz(18.6372, 10.3642, 61.9788)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6738D2 #A3D238
analogous
#3856D2 #6738D2 #B438D2
triadic
#6738D2 #D26738 #38D267
tetradic
#6738D2 #D23856 #A3D238 #38D2B4
square
#6738D2 #D23856 #A3D238 #38D2B4
split-complementary
#6738D2 #D2B438 #56D238
monochromatic
#361A75 #4D26A7 #6738D2 #8D6ADD #B39CE9

Accessibility & contrast

On white

6.83
#6738D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6738D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6738D2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6738D2#FFFFFF#000000##FFFFFF
##6738D21.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#0057CF
Tritanopia (blue-blind)
#406282
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6738d2;
/* rgb */ color: rgb(103, 56, 210);
/* oklch */ color: oklch(49.5% 0.219 289.9);
Tailwind
colors: {
  custom: {
    50: '#9c73e1',
    500: '#6738d2',
    950: '#000000',
  },
}
SCSS
$custom: #6738d2;
$custom-light: #9c73e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6738d2",
  "rgb": {
    "r": 103,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 258.312,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49453,
    "c": 0.21932,
    "h": 289.9
  },
  "luminance": 0.10365
}

Semantic roles & 50–950 ramp

primary
#6738D2
secondary
#C0D591
accent
#E642B4
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6738D2

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

Preview Lab → · Contrast checker → · Palette generator →

#6738D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva