#6F45BA#6F45BA

#6F45BA is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.176 H 295.9°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#6F45BA
RGBrgb(111, 69, 186)
HSLhsl(262, 46%, 50%)
HSVhsv(262, 63%, 73%)
CMYKcmyk(40.3%, 62.9%, 0%, 27.1%)
CIE-LABlab(39.88, 43.81, -55.52)
CIE-LCHlch(39.88, 70.73, 308.28°)
OKLaboklab(50.06% 0.0769 -0.1582)
OKLCHoklch(50.06% 0.176 295.9)
XYZxyz(17.5443, 11.1806, 47.6786)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F45BA #90BA45
analogous
#4556BA #6F45BA #A945BA
triadic
#6F45BA #BA6F45 #45BA6F
tetradic
#6F45BA #BA4556 #90BA45 #45BAA9
square
#6F45BA #BA4556 #90BA45 #45BAA9
split-complementary
#6F45BA #BAA945 #56BA45
monochromatic
#3A2461 #54348D #6F45BA #9272CB #B49EDB

Accessibility & contrast

On white

6.49
#6F45BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6F45BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F45BA
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F45BA#FFFFFF#000000##FFFFFF
##6F45BA1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#5C5F79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6f45ba;
/* rgb */ color: rgb(111, 69, 186);
/* oklch */ color: oklch(50.1% 0.176 295.9);
Tailwind
colors: {
  custom: {
    50: '#9e7bcf',
    500: '#6f45ba',
    950: '#000000',
  },
}
SCSS
$custom: #6f45ba;
$custom-light: #9e7bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#6f45ba",
  "rgb": {
    "r": 111,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 261.538,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.50058,
    "c": 0.17594,
    "h": 295.9
  },
  "luminance": 0.11181
}

Semantic roles & 50–950 ramp

primary
#6F45BA
secondary
#B5C893
accent
#D652A6
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6F45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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