#6A45CB#6A45CB

#6A45CB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.196 H 290.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#6A45CB
RGBrgb(106, 69, 203)
HSLhsl(257, 56%, 53%)
HSVhsv(257, 66%, 80%)
CMYKcmyk(47.8%, 66%, 0%, 20.4%)
CIE-LABlab(40.62, 47.50, -64.26)
CIE-LCHlch(40.62, 79.91, 306.48°)
OKLaboklab(50.87% 0.0683 -0.1841)
OKLCHoklch(50.87% 0.196 290.4)
XYZxyz(18.8484, 11.6315, 57.7403)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A45CB #A6CB45
analogous
#4563CB #6A45CB #AD45CB
triadic
#6A45CB #CB6A45 #45CB6A
tetradic
#6A45CB #CB4563 #A6CB45 #45CBAD
square
#6A45CB #CB4563 #A6CB45 #45CBAD
split-complementary
#6A45CB #CBAD45 #63CB45
monochromatic
#382175 #4F2EA5 #6A45CB #9075D8 #B7A5E6

Accessibility & contrast

On white

6.31
#6A45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6A45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A45CB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A45CB#FFFFFF#000000##FFFFFF
##6A45CB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#4B6682
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6a45cb;
/* rgb */ color: rgb(106, 69, 203);
/* oklch */ color: oklch(50.9% 0.196 290.4);
Tailwind
colors: {
  custom: {
    50: '#9c7bdc',
    500: '#6a45cb',
    950: '#000000',
  },
}
SCSS
$custom: #6a45cb;
$custom-light: #9c7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a45cb",
  "rgb": {
    "r": 106,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 256.567,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50869,
    "c": 0.19634,
    "h": 290.4
  },
  "luminance": 0.11632
}

Semantic roles & 50–950 ramp

primary
#6A45CB
secondary
#C3D399
accent
#E048B6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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