#6F31B8#6F31B8

#6F31B8 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.199 H 299.6°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#6F31B8
RGBrgb(111, 49, 184)
HSLhsl(268, 58%, 46%)
HSVhsv(268, 73%, 72%)
CMYKcmyk(39.7%, 73.4%, 0%, 27.8%)
CIE-LABlab(36.05, 53.44, -60.56)
CIE-LCHlch(36.05, 80.77, 311.42°)
OKLaboklab(47.27% 0.0981 -0.173)
OKLCHoklch(47.27% 0.199 299.6)
XYZxyz(16.3034, 9.0366, 46.2234)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31B8 #7AB831
analogous
#3136B8 #6F31B8 #B331B8
triadic
#6F31B8 #B86F31 #31B86F
tetradic
#6F31B8 #B83136 #7AB831 #31B8B3
square
#6F31B8 #B83136 #7AB831 #31B8B3
split-complementary
#6F31B8 #B8B331 #36B831
monochromatic
#351757 #522488 #6F31B8 #8E55D2 #AE85DE

Accessibility & contrast

On white

7.48
#6F31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6F31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31B8
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31B8#FFFFFF#000000##FFFFFF
##6F31B81.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#5E5372
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6f31b8;
/* rgb */ color: rgb(111, 49, 184);
/* oklch */ color: oklch(47.3% 0.199 299.6);
Tailwind
colors: {
  custom: {
    50: '#9f6fce',
    500: '#6f31b8',
    950: '#000000',
  },
}
SCSS
$custom: #6f31b8;
$custom-light: #9f6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31b8",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 267.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47268,
    "c": 0.19887,
    "h": 299.6
  },
  "luminance": 0.09037
}

Semantic roles & 50–950 ramp

primary
#6F31B8
secondary
#A5C87D
accent
#E1479A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6F31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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