#6A38CC#6A38CC

#6A38CC is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.2% C 0.213 H 292.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#6A38CC
RGBrgb(106, 56, 204)
HSLhsl(260, 59%, 51%)
HSVhsv(260, 73%, 80%)
CMYKcmyk(48%, 72.5%, 0%, 20%)
CIE-LABlab(38.29, 54.47, -68.65)
CIE-LCHlch(38.29, 87.63, 308.43°)
OKLaboklab(49.23% 0.0802 -0.1969)
OKLCHoklch(49.23% 0.213 292.2)
XYZxyz(18.2541, 10.2515, 58.1320)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38CC #9ACC38
analogous
#3850CC #6A38CC #B438CC
triadic
#6A38CC #CC6A38 #38CC6A
tetradic
#6A38CC #CC3850 #9ACC38 #38CCB4
square
#6A38CC #CC3850 #9ACC38 #38CCB4
split-complementary
#6A38CC #CCB438 #50CC38
monochromatic
#381C6E #50299E #6A38CC #8E69D8 #B399E5

Accessibility & contrast

On white

6.88
#6A38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6A38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A38CC
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38CC#FFFFFF#000000##FFFFFF
##6A38CC1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#4B5F7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6a38cc;
/* rgb */ color: rgb(106, 56, 204);
/* oklch */ color: oklch(49.2% 0.213 292.2);
Tailwind
colors: {
  custom: {
    50: '#9d73dd',
    500: '#6a38cc',
    950: '#000000',
  },
}
SCSS
$custom: #6a38cc;
$custom-light: #9d73dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38cc",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 260.27,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49228,
    "c": 0.21263,
    "h": 292.2
  },
  "luminance": 0.10252
}

Semantic roles & 50–950 ramp

primary
#6A38CC
secondary
#BBD18F
accent
#E245AD
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6A38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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