#6B38C3#6B38C3

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

Color values

HEX#6B38C3
RGBrgb(107, 56, 195)
HSLhsl(262, 55%, 49%)
HSVhsv(262, 71%, 76%)
CMYKcmyk(45.1%, 71.3%, 0%, 23.5%)
CIE-LABlab(37.65, 52.24, -64.44)
CIE-LCHlch(37.65, 82.96, 309.03°)
OKLaboklab(48.57% 0.0836 -0.1845)
OKLCHoklch(48.57% 0.203 294.4)
XYZxyz(17.3252, 9.8938, 52.6160)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38C3 #90C338
analogous
#384BC3 #6B38C3 #B038C3
triadic
#6B38C3 #C36B38 #38C36B
tetradic
#6B38C3 #C3384B #90C338 #38C3B0
square
#6B38C3 #C3384B #90C338 #38C3B0
split-complementary
#6B38C3 #C3B038 #4BC338
monochromatic
#371D64 #512A93 #6B38C3 #8E65D3 #B195E1

Accessibility & contrast

On white

7.05
#6B38C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B38C3
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38C3#FFFFFF#000000##FFFFFF
##6B38C31.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#525C7A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6b38c3;
/* rgb */ color: rgb(107, 56, 195);
/* oklch */ color: oklch(48.6% 0.203 294.4);
Tailwind
colors: {
  custom: {
    50: '#9d73d6',
    500: '#6b38c3',
    950: '#000000',
  },
}
SCSS
$custom: #6b38c3;
$custom-light: #9d73d6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38c3",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 262.014,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48569,
    "c": 0.20259,
    "h": 294.4
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#6B38C3
secondary
#B4CC8B
accent
#DF49A8
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6B38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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