#6C38C2#6C38C2

#6C38C2 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.202 H 295.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#6C38C2
RGBrgb(108, 56, 194)
HSLhsl(263, 55%, 49%)
HSVhsv(263, 71%, 76%)
CMYKcmyk(44.3%, 71.1%, 0%, 23.9%)
CIE-LABlab(37.68, 52.15, -63.80)
CIE-LCHlch(37.68, 82.41, 309.26°)
OKLaboklab(48.59% 0.0852 -0.1826)
OKLCHoklch(48.59% 0.202 295)
XYZxyz(17.3335, 9.9111, 52.0282)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38C2 #8EC238
analogous
#3849C2 #6C38C2 #B138C2
triadic
#6C38C2 #C26C38 #38C26C
tetradic
#6C38C2 #C23849 #8EC238 #38C2B1
square
#6C38C2 #C23849 #8EC238 #38C2B1
split-complementary
#6C38C2 #C2B138 #49C238
monochromatic
#371D63 #522A93 #6C38C2 #8E65D2 #B194E0

Accessibility & contrast

On white

7.04
#6C38C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6C38C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C38C2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38C2#FFFFFF#000000##FFFFFF
##6C38C21.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#0056BF
Tritanopia (blue-blind)
#545B79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6c38c2;
/* rgb */ color: rgb(108, 56, 194);
/* oklch */ color: oklch(48.6% 0.202 295.0);
Tailwind
colors: {
  custom: {
    50: '#9d73d5',
    500: '#6c38c2',
    950: '#000000',
  },
}
SCSS
$custom: #6c38c2;
$custom-light: #9d73d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38c2",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 262.609,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48592,
    "c": 0.20153,
    "h": 295
  },
  "luminance": 0.09912
}

Semantic roles & 50–950 ramp

primary
#6C38C2
secondary
#B3CB8A
accent
#DF49A6
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6C38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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