#6A38BC#6A38BC

#6A38BC is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.9% C 0.195 H 295.4°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#6A38BC
RGBrgb(106, 56, 188)
HSLhsl(263, 54%, 48%)
HSVhsv(263, 70%, 74%)
CMYKcmyk(43.6%, 70.2%, 0%, 26.3%)
CIE-LABlab(36.97, 50.21, -61.45)
CIE-LCHlch(36.97, 79.36, 309.25°)
OKLaboklab(47.89% 0.0835 -0.1758)
OKLCHoklch(47.89% 0.195 295.4)
XYZxyz(16.4327, 9.5230, 48.5395)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38BC #8ABC38
analogous
#3848BC #6A38BC #AC38BC
triadic
#6A38BC #BC6A38 #38BC6A
tetradic
#6A38BC #BC3848 #8ABC38 #38BCAC
square
#6A38BC #BC3848 #8ABC38 #38BCAC
split-complementary
#6A38BC #BCAC38 #48BC38
monochromatic
#351C5E #4F2A8D #6A38BC #8B61D0 #AE90DE

Accessibility & contrast

On white

7.23
#6A38BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6A38BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A38BC
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38BC#FFFFFF#000000##FFFFFF
##6A38BC1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#545976
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6a38bc;
/* rgb */ color: rgb(106, 56, 188);
/* oklch */ color: oklch(47.9% 0.195 295.4);
Tailwind
colors: {
  custom: {
    50: '#9c73d1',
    500: '#6a38bc',
    950: '#000000',
  },
}
SCSS
$custom: #6a38bc;
$custom-light: #9c73d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38bc",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 262.727,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47885,
    "c": 0.1946,
    "h": 295.4
  },
  "luminance": 0.09523
}

Semantic roles & 50–950 ramp

primary
#6A38BC
secondary
#B0C987
accent
#DD4AA6
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6A38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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