#6A45E4#6A45E4

#6A45E4 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.9% C 0.226 H 286.6°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#6A45E4
RGBrgb(106, 69, 228)
HSLhsl(254, 75%, 58%)
HSVhsv(254, 70%, 89%)
CMYKcmyk(53.5%, 69.7%, 0%, 10.6%)
CIE-LABlab(42.64, 54.55, -75.30)
CIE-LCHlch(42.64, 92.98, 305.92°)
OKLaboklab(52.94% 0.0643 -0.2165)
OKLCHoklch(52.94% 0.226 286.6)
XYZxyz(22.0714, 12.9207, 74.7147)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A45E4 #BFE445
analogous
#456FE4 #6A45E4 #B945E4
triadic
#6A45E4 #E46A45 #45E46A
tetradic
#6A45E4 #E4456F #BFE445 #45E4B9
square
#6A45E4 #E4456F #BFE445 #45E4B9
split-complementary
#6A45E4 #E4B945 #6FE445
monochromatic
#341698 #471ECE #6A45E4 #957AEC #C0B0F4

Accessibility & contrast

On white

5.86
#6A45E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#6A45E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A45E4
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A45E4#FFFFFF#000000##FFFFFF
##6A45E41.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a45e4;
/* rgb */ color: rgb(106, 69, 228);
/* oklch */ color: oklch(52.9% 0.226 286.6);
Tailwind
colors: {
  custom: {
    50: '#a07cee',
    500: '#6a45e4',
    950: '#000000',
  },
}
SCSS
$custom: #6a45e4;
$custom-light: #a07cee;
$custom-dark: #000000;
JSON
{
  "hex": "#6a45e4",
  "rgb": {
    "r": 106,
    "g": 69,
    "b": 228
  },
  "hsl": {
    "h": 253.962,
    "s": 74.648,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52941,
    "c": 0.22584,
    "h": 286.6
  },
  "luminance": 0.12922
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A45E4

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

Preview Lab → · Contrast checker → · Palette generator →

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