#6C38AF#6C38AF

#6C38AF is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.1% C 0.180 H 299.4°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#6C38AF
RGBrgb(108, 56, 175)
HSLhsl(266, 52%, 45%)
HSVhsv(266, 68%, 69%)
CMYKcmyk(38.3%, 68%, 0%, 31.4%)
CIE-LABlab(36.20, 47.20, -55.01)
CIE-LCHlch(36.20, 72.49, 310.63°)
OKLaboklab(47.07% 0.0884 -0.1568)
OKLCHoklch(47.07% 0.18 299.4)
XYZxyz(15.3345, 9.1115, 41.4999)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38AF #7BAF38
analogous
#3840AF #6C38AF #A738AF
triadic
#6C38AF #AF6C38 #38AF6C
tetradic
#6C38AF #AF3840 #7BAF38 #38AFA7
square
#6C38AF #AF3840 #7BAF38 #38AFA7
split-complementary
#6C38AF #AFA738 #40AF38
monochromatic
#331A52 #4F2981 #6C38AF #8B5ACA #AC88D9

Accessibility & contrast

On white

7.44
#6C38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#6C38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C38AF
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38AF#FFFFFF#000000##FFFFFF
##6C38AF1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#5D546F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6c38af;
/* rgb */ color: rgb(108, 56, 175);
/* oklch */ color: oklch(47.1% 0.180 299.4);
Tailwind
colors: {
  custom: {
    50: '#9b72c8',
    500: '#6c38af',
    950: '#000000',
  },
}
SCSS
$custom: #6c38af;
$custom-light: #9b72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38af",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 266.218,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47069,
    "c": 0.17999,
    "h": 299.4
  },
  "luminance": 0.09112
}

Semantic roles & 50–950 ramp

primary
#6C38AF
secondary
#A6C380
accent
#DB4D9D
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6C38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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