#6F38BA#6F38BA

#6F38BA is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.3% C 0.193 H 298.1°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#6F38BA
RGBrgb(111, 56, 186)
HSLhsl(265, 54%, 47%)
HSVhsv(265, 70%, 73%)
CMYKcmyk(40.3%, 69.9%, 0%, 27.1%)
CIE-LABlab(37.40, 50.62, -59.56)
CIE-LCHlch(37.40, 78.17, 310.36°)
OKLaboklab(48.27% 0.091 -0.1701)
OKLCHoklch(48.27% 0.193 298.1)
XYZxyz(16.8304, 9.7528, 47.4406)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F38BA #83BA38
analogous
#3842BA #6F38BA #B038BA
triadic
#6F38BA #BA6F38 #38BA6F
tetradic
#6F38BA #BA3842 #83BA38 #38BAB0
square
#6F38BA #BA3842 #83BA38 #38BAB0
split-complementary
#6F38BA #BAB038 #42BA38
monochromatic
#371C5C #532A8B #6F38BA #8F60CF #B08FDD

Accessibility & contrast

On white

7.12
#6F38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6F38BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F38BA
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F38BA#FFFFFF#000000##FFFFFF
##6F38BA1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#5D5875
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6f38ba;
/* rgb */ color: rgb(111, 56, 186);
/* oklch */ color: oklch(48.3% 0.193 298.1);
Tailwind
colors: {
  custom: {
    50: '#9e73d0',
    500: '#6f38ba',
    950: '#000000',
  },
}
SCSS
$custom: #6f38ba;
$custom-light: #9e73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6f38ba",
  "rgb": {
    "r": 111,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 265.385,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48268,
    "c": 0.19285,
    "h": 298.1
  },
  "luminance": 0.09753
}

Semantic roles & 50–950 ramp

primary
#6F38BA
secondary
#ACC886
accent
#DD4B9F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6F38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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