#6738AB#6738AB

#6738AB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.2% C 0.175 H 297.9°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#6738AB
RGBrgb(103, 56, 171)
HSLhsl(265, 51%, 45%)
HSVhsv(265, 67%, 67%)
CMYKcmyk(39.8%, 67.3%, 0%, 32.9%)
CIE-LABlab(35.31, 45.14, -54.10)
CIE-LCHlch(35.31, 70.46, 309.84°)
OKLaboklab(46.2% 0.0819 -0.1543)
OKLCHoklch(46.2% 0.175 297.9)
XYZxyz(14.3565, 8.6520, 39.4338)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6738AB #7CAB38
analogous
#3842AB #6738AB #A138AB
triadic
#6738AB #AB6738 #38AB67
tetradic
#6738AB #AB3842 #7CAB38 #38ABA1
square
#6738AB #AB3842 #7CAB38 #38ABA1
split-complementary
#6738AB #ABA138 #42AB38
monochromatic
#2F1A4F #4B297D #6738AB #8658C8 #A786D7

Accessibility & contrast

On white

7.69
#6738AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#6738AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6738AB
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6738AB#FFFFFF#000000##FFFFFF
##6738AB1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#57536D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6738ab;
/* rgb */ color: rgb(103, 56, 171);
/* oklch */ color: oklch(46.2% 0.175 297.9);
Tailwind
colors: {
  custom: {
    50: '#9872c5',
    500: '#6738ab',
    950: '#000000',
  },
}
SCSS
$custom: #6738ab;
$custom-light: #9872c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6738ab",
  "rgb": {
    "r": 103,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 264.522,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46201,
    "c": 0.17466,
    "h": 297.9
  },
  "luminance": 0.08652
}

Semantic roles & 50–950 ramp

primary
#6738AB
secondary
#A6C17D
accent
#DA4EA1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6738AB

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

Preview Lab → · Contrast checker → · Palette generator →

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