#6F31BB#6F31BB

#6F31BB is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.202 H 298.8°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#6F31BB
RGBrgb(111, 49, 187)
HSLhsl(267, 58%, 46%)
HSVhsv(267, 74%, 73%)
CMYKcmyk(40.6%, 73.8%, 0%, 26.7%)
CIE-LABlab(36.30, 54.18, -61.94)
CIE-LCHlch(36.30, 82.29, 311.18°)
OKLaboklab(47.52% 0.0975 -0.177)
OKLCHoklch(47.52% 0.202 298.8)
XYZxyz(16.6212, 9.1638, 47.8972)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31BB #7DBB31
analogous
#3138BB #6F31BB #B431BB
triadic
#6F31BB #BB6F31 #31BB6F
tetradic
#6F31BB #BB3138 #7DBB31 #31BBB4
square
#6F31BB #BB3138 #7DBB31 #31BBB4
split-complementary
#6F31BB #BBB431 #38BB31
monochromatic
#35185A #52248B #6F31BB #8E56D3 #AF87E0

Accessibility & contrast

On white

7.41
#6F31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6F31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31BB
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31BB#FFFFFF#000000##FFFFFF
##6F31BB1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#5D5473
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6f31bb;
/* rgb */ color: rgb(111, 49, 187);
/* oklch */ color: oklch(47.5% 0.202 298.8);
Tailwind
colors: {
  custom: {
    50: '#9f6fd0',
    500: '#6f31bb',
    950: '#000000',
  },
}
SCSS
$custom: #6f31bb;
$custom-light: #9f6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31bb",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 266.957,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47515,
    "c": 0.20207,
    "h": 298.8
  },
  "luminance": 0.09164
}

Semantic roles & 50–950 ramp

primary
#6F31BB
secondary
#A8C97F
accent
#E2469C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6F31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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