#6F38C6#6F38C6

#6F38C6 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.2% C 0.206 H 295.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#6F38C6
RGBrgb(111, 56, 198)
HSLhsl(263, 56%, 50%)
HSVhsv(263, 72%, 78%)
CMYKcmyk(43.9%, 71.7%, 0%, 22.4%)
CIE-LABlab(38.35, 53.72, -65.04)
CIE-LCHlch(38.35, 84.35, 309.56°)
OKLaboklab(49.24% 0.0887 -0.1862)
OKLCHoklch(49.24% 0.206 295.5)
XYZxyz(18.1600, 10.2846, 54.4435)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F38C6 #8FC638
analogous
#3848C6 #6F38C6 #B638C6
triadic
#6F38C6 #C66F38 #38C66F
tetradic
#6F38C6 #C63848 #8FC638 #38C6B6
square
#6F38C6 #C63848 #8FC638 #38C6B6
split-complementary
#6F38C6 #C6B638 #48C638
monochromatic
#3A1D67 #542B96 #6F38C6 #9167D4 #B497E2

Accessibility & contrast

On white

6.87
#6F38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6F38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F38C6
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F38C6#FFFFFF#000000##FFFFFF
##6F38C61.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0058C3
Tritanopia (blue-blind)
#575C7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6f38c6;
/* rgb */ color: rgb(111, 56, 198);
/* oklch */ color: oklch(49.2% 0.206 295.5);
Tailwind
colors: {
  custom: {
    50: '#a073d8',
    500: '#6f38c6',
    950: '#000000',
  },
}
SCSS
$custom: #6f38c6;
$custom-light: #a073d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6f38c6",
  "rgb": {
    "r": 111,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 263.239,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49243,
    "c": 0.20621,
    "h": 295.5
  },
  "luminance": 0.10285
}

Semantic roles & 50–950 ramp

primary
#6F38C6
secondary
#B4CD8D
accent
#DF49A5
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #6F38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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