#6F38B2#6F38B2

#6F38B2 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.184 H 300.1°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#6F38B2
RGBrgb(111, 56, 178)
HSLhsl(267, 52%, 46%)
HSVhsv(267, 69%, 70%)
CMYKcmyk(37.6%, 68.5%, 0%, 30.2%)
CIE-LABlab(36.78, 48.58, -55.82)
CIE-LCHlch(36.78, 74.00, 311.03°)
OKLaboklab(47.64% 0.0922 -0.1591)
OKLCHoklch(47.64% 0.184 300.1)
XYZxyz(16.0036, 9.4221, 43.0863)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F38B2 #7BB238
analogous
#383EB2 #6F38B2 #AC38B2
triadic
#6F38B2 #B26F38 #38B26F
tetradic
#6F38B2 #B2383E #7BB238 #38B2AC
square
#6F38B2 #B2383E #7BB238 #38B2AC
split-complementary
#6F38B2 #B2AC38 #3EB238
monochromatic
#351B55 #522983 #6F38B2 #8E5CCC #AE8ADA

Accessibility & contrast

On white

7.28
#6F38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6F38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F38B2
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F38B2#FFFFFF#000000##FFFFFF
##6F38B21.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#605570
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6f38b2;
/* rgb */ color: rgb(111, 56, 178);
/* oklch */ color: oklch(47.6% 0.184 300.1);
Tailwind
colors: {
  custom: {
    50: '#9e73ca',
    500: '#6f38b2',
    950: '#000000',
  },
}
SCSS
$custom: #6f38b2;
$custom-light: #9e73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6f38b2",
  "rgb": {
    "r": 111,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 267.049,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47641,
    "c": 0.18387,
    "h": 300.1
  },
  "luminance": 0.09422
}

Semantic roles & 50–950 ramp

primary
#6F38B2
secondary
#A6C581
accent
#DC4C9B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6F38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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