#6B38C2#6B38C2

#6B38C2 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.5% C 0.201 H 294.6°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#6B38C2
RGBrgb(107, 56, 194)
HSLhsl(262, 55%, 49%)
HSVhsv(262, 71%, 76%)
CMYKcmyk(44.8%, 71.1%, 0%, 23.9%)
CIE-LABlab(37.57, 51.98, -63.99)
CIE-LCHlch(37.57, 82.44, 309.09°)
OKLaboklab(48.49% 0.0838 -0.1832)
OKLCHoklch(48.49% 0.201 294.6)
XYZxyz(17.2125, 9.8487, 52.0226)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38C2 #8FC238
analogous
#384AC2 #6B38C2 #B038C2
triadic
#6B38C2 #C26B38 #38C26B
tetradic
#6B38C2 #C2384A #8FC238 #38C2B0
square
#6B38C2 #C2384A #8FC238 #38C2B0
split-complementary
#6B38C2 #C2B038 #4AC238
monochromatic
#371D63 #512A93 #6B38C2 #8D65D2 #B094E0

Accessibility & contrast

On white

7.07
#6B38C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#6B38C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B38C2
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38C2#FFFFFF#000000##FFFFFF
##6B38C21.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b38c2;
/* rgb */ color: rgb(107, 56, 194);
/* oklch */ color: oklch(48.5% 0.201 294.6);
Tailwind
colors: {
  custom: {
    50: '#9d73d5',
    500: '#6b38c2',
    950: '#000000',
  },
}
SCSS
$custom: #6b38c2;
$custom-light: #9d73d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38c2",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 262.174,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48486,
    "c": 0.20146,
    "h": 294.6
  },
  "luminance": 0.09849
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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