#6F45C2#6F45C2

#6F45C2 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.186 H 294.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#6F45C2
RGBrgb(111, 69, 194)
HSLhsl(260, 51%, 52%)
HSVhsv(260, 64%, 76%)
CMYKcmyk(42.8%, 64.4%, 0%, 23.9%)
CIE-LABlab(40.46, 45.98, -59.27)
CIE-LCHlch(40.46, 75.01, 307.80°)
OKLaboklab(50.66% 0.0762 -0.1693)
OKLCHoklch(50.66% 0.186 294.2)
XYZxyz(18.4187, 11.5303, 52.2836)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F45C2 #98C245
analogous
#455AC2 #6F45C2 #AE45C2
triadic
#6F45C2 #C26F45 #45C26F
tetradic
#6F45C2 #C2455A #98C245 #45C2AE
square
#6F45C2 #C2455A #98C245 #45C2AE
split-complementary
#6F45C2 #C2AE45 #5AC245
monochromatic
#3B236A #543298 #6F45C2 #9373D1 #B6A1E0

Accessibility & contrast

On white

6.35
#6F45C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6F45C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F45C2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F45C2#FFFFFF#000000##FFFFFF
##6F45C21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#58627D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6f45c2;
/* rgb */ color: rgb(111, 69, 194);
/* oklch */ color: oklch(50.7% 0.186 294.2);
Tailwind
colors: {
  custom: {
    50: '#9e7bd5',
    500: '#6f45c2',
    950: '#000000',
  },
}
SCSS
$custom: #6f45c2;
$custom-light: #9e7bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#6f45c2",
  "rgb": {
    "r": 111,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 260.16,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50657,
    "c": 0.18563,
    "h": 294.2
  },
  "luminance": 0.11531
}

Semantic roles & 50–950 ramp

primary
#6F45C2
secondary
#BACD96
accent
#DA4EAB
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6F45C2

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

Preview Lab → · Contrast checker → · Palette generator →

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