#6C38B3#6C38B3

#6C38B3 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.4% C 0.185 H 298.4°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#6C38B3
RGBrgb(108, 56, 179)
HSLhsl(265, 52%, 46%)
HSVhsv(265, 69%, 70%)
CMYKcmyk(39.7%, 68.7%, 0%, 29.8%)
CIE-LABlab(36.50, 48.24, -56.90)
CIE-LCHlch(36.50, 74.59, 310.29°)
OKLaboklab(47.38% 0.0878 -0.1623)
OKLCHoklch(47.38% 0.185 298.4)
XYZxyz(15.7331, 9.2709, 43.5996)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38B3 #7FB338
analogous
#3841B3 #6C38B3 #A938B3
triadic
#6C38B3 #B36C38 #38B36C
tetradic
#6C38B3 #B33841 #7FB338 #38B3A9
square
#6C38B3 #B33841 #7FB338 #38B3A9
split-complementary
#6C38B3 #B3A938 #41B338
monochromatic
#341B56 #502984 #6C38B3 #8B5CCC #AD8BDB

Accessibility & contrast

On white

7.36
#6C38B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#6C38B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C38B3
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38B3#FFFFFF#000000##FFFFFF
##6C38B31.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#5B5571
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6c38b3;
/* rgb */ color: rgb(108, 56, 179);
/* oklch */ color: oklch(47.4% 0.185 298.4);
Tailwind
colors: {
  custom: {
    50: '#9c72cb',
    500: '#6c38b3',
    950: '#000000',
  },
}
SCSS
$custom: #6c38b3;
$custom-light: #9c72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38b3",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 265.366,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47381,
    "c": 0.18456,
    "h": 298.4
  },
  "luminance": 0.09271
}

Semantic roles & 50–950 ramp

primary
#6C38B3
secondary
#A9C582
accent
#DC4C9F
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6C38B3

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

Preview Lab → · Contrast checker → · Palette generator →

#6C38B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva