#6B45C8#6B45C8

#6B45C8 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.7% C 0.193 H 291.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#6B45C8
RGBrgb(107, 69, 200)
HSLhsl(257, 54%, 53%)
HSVhsv(257, 66%, 78%)
CMYKcmyk(46.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(40.49, 46.85, -62.72)
CIE-LCHlch(40.49, 78.29, 306.76°)
OKLaboklab(50.73% 0.0701 -0.1795)
OKLCHoklch(50.73% 0.193 291.3)
XYZxyz(18.6139, 11.5515, 55.8813)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B45C8 #A2C845
analogous
#4560C8 #6B45C8 #AD45C8
triadic
#6B45C8 #C86B45 #45C86B
tetradic
#6B45C8 #C84560 #A2C845 #45C8AD
square
#6B45C8 #C84560 #A2C845 #45C8AD
split-complementary
#6B45C8 #C8AD45 #60C845
monochromatic
#392171 #502FA0 #6B45C8 #9174D6 #B6A3E4

Accessibility & contrast

On white

6.34
#6B45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6B45C8
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B45C8#FFFFFF#000000##FFFFFF
##6B45C81.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#4E6580
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6b45c8;
/* rgb */ color: rgb(107, 69, 200);
/* oklch */ color: oklch(50.7% 0.193 291.3);
Tailwind
colors: {
  custom: {
    50: '#9d7bda',
    500: '#6b45c8',
    950: '#000000',
  },
}
SCSS
$custom: #6b45c8;
$custom-light: #9d7bda;
$custom-dark: #000000;
JSON
{
  "hex": "#6b45c8",
  "rgb": {
    "r": 107,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 257.405,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50727,
    "c": 0.19272,
    "h": 291.3
  },
  "luminance": 0.11552
}

Semantic roles & 50–950 ramp

primary
#6B45C8
secondary
#C0D198
accent
#DE4AB3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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