#6B45E4#6B45E4

#6B45E4 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.0% C 0.226 H 286.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#6B45E4
RGBrgb(107, 69, 228)
HSLhsl(254, 75%, 58%)
HSVhsv(254, 70%, 89%)
CMYKcmyk(53.1%, 69.7%, 0%, 10.6%)
CIE-LABlab(42.74, 54.71, -75.14)
CIE-LCHlch(42.74, 92.94, 306.06°)
OKLaboklab(53.03% 0.0657 -0.216)
OKLCHoklch(53.03% 0.226 286.9)
XYZxyz(22.1910, 12.9823, 74.7203)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B45E4 #BEE445
analogous
#456EE4 #6B45E4 #BB45E4
triadic
#6B45E4 #E46B45 #45E46B
tetradic
#6B45E4 #E4456E #BEE445 #45E4BB
square
#6B45E4 #E4456E #BEE445 #45E4BB
split-complementary
#6B45E4 #E4BB45 #6EE445
monochromatic
#351698 #481ECE #6B45E4 #967AEC #C0B0F4

Accessibility & contrast

On white

5.84
#6B45E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#6B45E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B45E4
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B45E4#FFFFFF#000000##FFFFFF
##6B45E41.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E9
Deuteranopia (green-blind)
#0060E1
Tritanopia (blue-blind)
#396F90
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6b45e4;
/* rgb */ color: rgb(107, 69, 228);
/* oklch */ color: oklch(53.0% 0.226 286.9);
Tailwind
colors: {
  custom: {
    50: '#a07cee',
    500: '#6b45e4',
    950: '#000000',
  },
}
SCSS
$custom: #6b45e4;
$custom-light: #a07cee;
$custom-dark: #000000;
JSON
{
  "hex": "#6b45e4",
  "rgb": {
    "r": 107,
    "g": 69,
    "b": 228
  },
  "hsl": {
    "h": 254.34,
    "s": 74.648,
    "l": 58.235
  },
  "oklch": {
    "l": 0.5303,
    "c": 0.22577,
    "h": 286.9
  },
  "luminance": 0.12983
}

Semantic roles & 50–950 ramp

primary
#6B45E4
secondary
#D3E2A3
accent
#F137C5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #6B45E4

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

Preview Lab → · Contrast checker → · Palette generator →

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