#6F45CA#6F45CA

#6F45CA is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.195 H 292.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#6F45CA
RGBrgb(111, 69, 202)
HSLhsl(259, 56%, 53%)
HSVhsv(259, 66%, 79%)
CMYKcmyk(45%, 65.8%, 0%, 20.8%)
CIE-LABlab(41.06, 48.16, -62.95)
CIE-LCHlch(41.06, 79.26, 307.42°)
OKLaboklab(51.28% 0.0753 -0.1801)
OKLCHoklch(51.28% 0.195 292.7)
XYZxyz(19.3414, 11.8994, 57.1434)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F45CA #A0CA45
analogous
#455DCA #6F45CA #B145CA
triadic
#6F45CA #CA6F45 #45CA6F
tetradic
#6F45CA #CA455D #A0CA45 #45CAB1
square
#6F45CA #CA455D #A0CA45 #45CAB1
split-complementary
#6F45CA #CAB145 #5DCA45
monochromatic
#3B2174 #532FA3 #6F45CA #9475D8 #B9A4E5

Accessibility & contrast

On white

6.21
#6F45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6F45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F45CA
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F45CA#FFFFFF#000000##FFFFFF
##6F45CA1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#546582
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6f45ca;
/* rgb */ color: rgb(111, 69, 202);
/* oklch */ color: oklch(51.3% 0.195 292.7);
Tailwind
colors: {
  custom: {
    50: '#9f7bdb',
    500: '#6f45ca',
    950: '#000000',
  },
}
SCSS
$custom: #6f45ca;
$custom-light: #9f7bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#6f45ca",
  "rgb": {
    "r": 111,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 258.947,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51275,
    "c": 0.19519,
    "h": 292.7
  },
  "luminance": 0.119
}

Semantic roles & 50–950 ramp

primary
#6F45CA
secondary
#C0D299
accent
#DF49B0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6F45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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