#6B38C4#6B38C4

#6B38C4 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.204 H 294.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#6B38C4
RGBrgb(107, 56, 196)
HSLhsl(262, 56%, 49%)
HSVhsv(262, 71%, 77%)
CMYKcmyk(45.4%, 71.4%, 0%, 23.1%)
CIE-LABlab(37.73, 52.51, -64.89)
CIE-LCHlch(37.73, 83.48, 308.98°)
OKLaboklab(48.65% 0.0834 -0.1859)
OKLCHoklch(48.65% 0.204 294.2)
XYZxyz(17.4387, 9.9392, 53.2135)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38C4 #91C438
analogous
#384BC4 #6B38C4 #B138C4
triadic
#6B38C4 #C46B38 #38C46B
tetradic
#6B38C4 #C4384B #91C438 #38C4B1
square
#6B38C4 #C4384B #91C438 #38C4B1
split-complementary
#6B38C4 #C4B138 #4BC438
monochromatic
#371D65 #512A94 #6B38C4 #8E66D3 #B196E1

Accessibility & contrast

On white

7.03
#6B38C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6B38C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B38C4
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38C4#FFFFFF#000000##FFFFFF
##6B38C41.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0056C1
Tritanopia (blue-blind)
#515C7A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6b38c4;
/* rgb */ color: rgb(107, 56, 196);
/* oklch */ color: oklch(48.7% 0.204 294.2);
Tailwind
colors: {
  custom: {
    50: '#9d73d7',
    500: '#6b38c4',
    950: '#000000',
  },
}
SCSS
$custom: #6b38c4;
$custom-light: #9d73d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38c4",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 261.857,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48653,
    "c": 0.20371,
    "h": 294.2
  },
  "luminance": 0.0994
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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