#6F45B2#6F45B2

#6F45B2 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.5% C 0.166 H 297.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#6F45B2
RGBrgb(111, 69, 178)
HSLhsl(263, 44%, 48%)
HSVhsv(263, 61%, 70%)
CMYKcmyk(37.6%, 61.2%, 0%, 30.2%)
CIE-LABlab(39.33, 41.67, -51.71)
CIE-LCHlch(39.33, 66.41, 308.86°)
OKLaboklab(49.48% 0.0774 -0.147)
OKLCHoklch(49.48% 0.166 297.8)
XYZxyz(16.7175, 10.8499, 43.3243)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F45B2 #88B245
analogous
#4551B2 #6F45B2 #A545B2
triadic
#6F45B2 #B26F45 #45B26F
tetradic
#6F45B2 #B24551 #88B245 #45B2A5
square
#6F45B2 #B24551 #88B245 #45B2A5
split-complementary
#6F45B2 #B2A545 #51B245
monochromatic
#38235A #533486 #6F45B2 #906EC7 #B29AD8

Accessibility & contrast

On white

6.62
#6F45B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6F45B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F45B2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F45B2#FFFFFF#000000##FFFFFF
##6F45B21.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#165BB0
Tritanopia (blue-blind)
#5F5D75
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6f45b2;
/* rgb */ color: rgb(111, 69, 178);
/* oklch */ color: oklch(49.5% 0.166 297.8);
Tailwind
colors: {
  custom: {
    50: '#9d7bca',
    500: '#6f45b2',
    950: '#000000',
  },
}
SCSS
$custom: #6f45b2;
$custom-light: #9d7bca;
$custom-dark: #000000;
JSON
{
  "hex": "#6f45b2",
  "rgb": {
    "r": 111,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 263.119,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49476,
    "c": 0.16616,
    "h": 297.8
  },
  "luminance": 0.1085
}

Semantic roles & 50–950 ramp

primary
#6F45B2
secondary
#AFC48F
accent
#D454A3
background
#FAF7FC
surface
#F3EEF8
border
#CDC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #6F45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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