#6F31B4#6F31B4

#6F31B4 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.195 H 300.6°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#6F31B4
RGBrgb(111, 49, 180)
HSLhsl(268, 57%, 45%)
HSVhsv(268, 73%, 71%)
CMYKcmyk(38.3%, 72.8%, 0%, 29.4%)
CIE-LABlab(35.74, 52.45, -58.72)
CIE-LCHlch(35.74, 78.73, 311.77°)
OKLaboklab(46.94% 0.099 -0.1675)
OKLCHoklch(46.94% 0.195 300.6)
XYZxyz(15.8900, 8.8713, 44.0463)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31B4 #76B431
analogous
#3135B4 #6F31B4 #B131B4
triadic
#6F31B4 #B46F31 #31B46F
tetradic
#6F31B4 #B43135 #76B431 #31B4B1
square
#6F31B4 #B43135 #76B431 #31B4B1
split-complementary
#6F31B4 #B4B131 #35B431
monochromatic
#341754 #512484 #6F31B4 #8E52D0 #AD82DD

Accessibility & contrast

On white

7.57
#6F31B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6F31B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31B4
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31B4#FFFFFF#000000##FFFFFF
##6F31B41.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#5F5270
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6f31b4;
/* rgb */ color: rgb(111, 49, 180);
/* oklch */ color: oklch(46.9% 0.195 300.6);
Tailwind
colors: {
  custom: {
    50: '#9e6fcb',
    500: '#6f31b4',
    950: '#000000',
  },
}
SCSS
$custom: #6f31b4;
$custom-light: #9e6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31b4",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 268.397,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46942,
    "c": 0.19458,
    "h": 300.6
  },
  "luminance": 0.08871
}

Semantic roles & 50–950 ramp

primary
#6F31B4
secondary
#A2C67B
accent
#E04798
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6F31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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