#6F38B8#6F38B8

#6F38B8 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.1% C 0.191 H 298.6°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#6F38B8
RGBrgb(111, 56, 184)
HSLhsl(266, 53%, 47%)
HSVhsv(266, 70%, 72%)
CMYKcmyk(39.7%, 69.6%, 0%, 27.8%)
CIE-LABlab(37.24, 50.11, -58.63)
CIE-LCHlch(37.24, 77.13, 310.52°)
OKLaboklab(48.11% 0.0913 -0.1673)
OKLCHoklch(48.11% 0.191 298.6)
XYZxyz(16.6193, 9.6683, 46.3287)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F38B8 #81B838
analogous
#3841B8 #6F38B8 #AF38B8
triadic
#6F38B8 #B86F38 #38B86F
tetradic
#6F38B8 #B83841 #81B838 #38B8AF
square
#6F38B8 #B83841 #81B838 #38B8AF
split-complementary
#6F38B8 #B8AF38 #41B838
monochromatic
#361B5A #532A89 #6F38B8 #8F5FCE #B08EDD

Accessibility & contrast

On white

7.16
#6F38B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6F38B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F38B8
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F38B8#FFFFFF#000000##FFFFFF
##6F38B81.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#5E5774
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6f38b8;
/* rgb */ color: rgb(111, 56, 184);
/* oklch */ color: oklch(48.1% 0.191 298.6);
Tailwind
colors: {
  custom: {
    50: '#9e73ce',
    500: '#6f38b8',
    950: '#000000',
  },
}
SCSS
$custom: #6f38b8;
$custom-light: #9e73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6f38b8",
  "rgb": {
    "r": 111,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 265.781,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4811,
    "c": 0.19062,
    "h": 298.6
  },
  "luminance": 0.09669
}

Semantic roles & 50–950 ramp

primary
#6F38B8
secondary
#ABC785
accent
#DD4B9E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6F38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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