#6A5CEC#6A5CEC

#6A5CEC is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 57.0% C 0.209 H 281.9°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#6A5CEC
RGBrgb(106, 92, 236)
HSLhsl(246, 79%, 64%)
HSVhsv(246, 61%, 93%)
CMYKcmyk(55.1%, 61%, 0%, 7.5%)
CIE-LABlab(47.97, 44.22, -71.12)
CIE-LCHlch(47.97, 83.74, 301.87°)
OKLaboklab(56.99% 0.043 -0.2042)
OKLCHoklch(56.99% 0.209 281.9)
XYZxyz(24.9066, 16.7730, 81.2657)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A5CEC #DEEC5C
analogous
#5C96EC #6A5CEC #B25CEC
triadic
#6A5CEC #EC6A5C #5CEC6A
tetradic
#6A5CEC #EC5C96 #DEEC5C #5CECB2
square
#6A5CEC #EC5C96 #DEEC5C #5CECB2
split-complementary
#6A5CEC #ECB25C #96EC5C
monochromatic
#2515B8 #3825E6 #6A5CEC #9C93F2 #CECAF9

Accessibility & contrast

On white

4.82
#6A5CEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#6A5CEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A5CEC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A5CEC#FFFFFF#000000##FFFFFF
##6A5CEC1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#006DE9
Tritanopia (blue-blind)
#2A7F9B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #6a5cec;
/* rgb */ color: rgb(106, 92, 236);
/* oklch */ color: oklch(57.0% 0.209 281.9);
Tailwind
colors: {
  custom: {
    50: '#9f8bf3',
    500: '#6a5cec',
    950: '#000000',
  },
}
SCSS
$custom: #6a5cec;
$custom-light: #9f8bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a5cec",
  "rgb": {
    "r": 106,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 245.833,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.56987,
    "c": 0.20869,
    "h": 281.9
  },
  "luminance": 0.16775
}

Semantic roles & 50–950 ramp

primary
#6A5CEC
secondary
#E6EBB9
accent
#DB0AC7
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #6A5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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