#6F38D4#6F38D4

#6F38D4 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.4% C 0.222 H 292.7°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#6F38D4
RGBrgb(111, 56, 212)
HSLhsl(261, 64%, 53%)
HSVhsv(261, 74%, 83%)
CMYKcmyk(47.6%, 73.6%, 0%, 16.9%)
CIE-LABlab(39.51, 57.37, -71.25)
CIE-LCHlch(39.51, 91.47, 308.84°)
OKLaboklab(50.43% 0.0856 -0.2044)
OKLCHoklch(50.43% 0.222 292.7)
XYZxyz(19.8501, 10.9606, 63.3443)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F38D4 #9DD438
analogous
#384FD4 #6F38D4 #BD38D4
triadic
#6F38D4 #D46F38 #38D46F
tetradic
#6F38D4 #D4384F #9DD438 #38D4BD
square
#6F38D4 #D4384F #9DD438 #38D4BD
split-complementary
#6F38D4 #D4BD38 #4FD438
monochromatic
#3B1A78 #5425AA #6F38D4 #936ADF #B89DEA

Accessibility & contrast

On white

6.58
#6F38D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6F38D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F38D4
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F38D4#FFFFFF#000000##FFFFFF
##6F38D41.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#005AD1
Tritanopia (blue-blind)
#4F6283
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6f38d4;
/* rgb */ color: rgb(111, 56, 212);
/* oklch */ color: oklch(50.4% 0.222 292.7);
Tailwind
colors: {
  custom: {
    50: '#a174e2',
    500: '#6f38d4',
    950: '#000000',
  },
}
SCSS
$custom: #6f38d4;
$custom-light: #a174e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6f38d4",
  "rgb": {
    "r": 111,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 261.154,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50426,
    "c": 0.22157,
    "h": 292.7
  },
  "luminance": 0.10961
}

Semantic roles & 50–950 ramp

primary
#6F38D4
secondary
#BED692
accent
#E740AD
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6F38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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