#6A45E2#6A45E2

#6A45E2 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.224 H 286.8°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#6A45E2
RGBrgb(106, 69, 226)
HSLhsl(254, 73%, 58%)
HSVhsv(254, 69%, 89%)
CMYKcmyk(53.1%, 69.5%, 0%, 11.4%)
CIE-LABlab(42.48, 53.99, -74.43)
CIE-LCHlch(42.48, 91.95, 305.95°)
OKLaboklab(52.77% 0.0647 -0.2139)
OKLCHoklch(52.77% 0.224 286.8)
XYZxyz(21.7954, 12.8103, 73.2609)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A45E2 #BDE245
analogous
#456EE2 #6A45E2 #B845E2
triadic
#6A45E2 #E26A45 #45E26A
tetradic
#6A45E2 #E2456E #BDE245 #45E2B8
square
#6A45E2 #E2456E #BDE245 #45E2B8
split-complementary
#6A45E2 #E2B845 #6EE245
monochromatic
#351795 #4820CA #6A45E2 #947AEA #BFAFF3

Accessibility & contrast

On white

5.90
#6A45E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#6A45E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A45E2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A45E2#FFFFFF#000000##FFFFFF
##6A45E21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0060DF
Tritanopia (blue-blind)
#396E8F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6a45e2;
/* rgb */ color: rgb(106, 69, 226);
/* oklch */ color: oklch(52.8% 0.224 286.8);
Tailwind
colors: {
  custom: {
    50: '#a07cec',
    500: '#6a45e2',
    950: '#000000',
  },
}
SCSS
$custom: #6a45e2;
$custom-light: #a07cec;
$custom-dark: #000000;
JSON
{
  "hex": "#6a45e2",
  "rgb": {
    "r": 106,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 254.14,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5277,
    "c": 0.22352,
    "h": 286.8
  },
  "luminance": 0.12811
}

Semantic roles & 50–950 ramp

primary
#6A45E2
secondary
#D2E1A2
accent
#F038C4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #6A45E2

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

Preview Lab → · Contrast checker → · Palette generator →

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