#6C38E7#6C38E7

#6C38E7 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.8% C 0.242 H 288.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#6C38E7
RGBrgb(108, 56, 231)
HSLhsl(258, 78%, 56%)
HSVhsv(258, 76%, 91%)
CMYKcmyk(53.2%, 75.8%, 0%, 9.4%)
CIE-LABlab(40.87, 61.94, -79.90)
CIE-LCHlch(40.87, 101.10, 307.78°)
OKLaboklab(51.82% 0.0764 -0.2298)
OKLCHoklch(51.82% 0.242 288.4)
XYZxyz(22.0181, 11.7849, 76.7004)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38E7 #B3E738
analogous
#385CE7 #6C38E7 #C438E7
triadic
#6C38E7 #E76C38 #38E76C
tetradic
#6C38E7 #E7385C #B3E738 #38E7C4
square
#6C38E7 #E7385C #B3E738 #38E7C4
split-complementary
#6C38E7 #E7C438 #5CE738
monochromatic
#381293 #4D18CA #6C38E7 #946FEE #BDA5F4

Accessibility & contrast

On white

6.26
#6C38E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6C38E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C38E7
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38E7#FFFFFF#000000##FFFFFF
##6C38E71.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EC
Deuteranopia (green-blind)
#005CE4
Tritanopia (blue-blind)
#3A6A8E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6c38e7;
/* rgb */ color: rgb(108, 56, 231);
/* oklch */ color: oklch(51.8% 0.242 288.4);
Tailwind
colors: {
  custom: {
    50: '#a275f0',
    500: '#6c38e7',
    950: '#000000',
  },
}
SCSS
$custom: #6c38e7;
$custom-light: #a275f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38e7",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 231
  },
  "hsl": {
    "h": 257.829,
    "s": 78.475,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51816,
    "c": 0.2422,
    "h": 288.4
  },
  "luminance": 0.11786
}

Semantic roles & 50–950 ramp

primary
#6C38E7
secondary
#CCE199
accent
#F533BB
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6C38E7

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

Preview Lab → · Contrast checker → · Palette generator →

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