#6A5FEC#6A5FEC

#6A5FEC is a mid, highly saturated blue. Relative luminance 0.173; OKLCH L 57.5% C 0.205 H 281.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#6A5FEC
RGBrgb(106, 95, 236)
HSLhsl(245, 79%, 65%)
HSVhsv(245, 60%, 93%)
CMYKcmyk(55.1%, 59.7%, 0%, 7.5%)
CIE-LABlab(48.64, 42.47, -70.04)
CIE-LCHlch(48.64, 81.91, 301.23°)
OKLaboklab(57.48% 0.0402 -0.201)
OKLCHoklch(57.48% 0.205 281.3)
XYZxyz(25.1717, 17.3031, 81.3540)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A5FEC #E1EC5F
analogous
#5F9AEC #6A5FEC #B15FEC
triadic
#6A5FEC #EC6A5F #5FEC6A
tetradic
#6A5FEC #EC5F9A #E1EC5F #5FECB1
square
#6A5FEC #EC5F9A #E1EC5F #5FECB1
split-complementary
#6A5FEC #ECB15F #9AEC5F
monochromatic
#2316BA #3728E6 #6A5FEC #9D96F2 #D0CCF9

Accessibility & contrast

On white

4.71
#6A5FEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#6A5FEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A5FEC
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A5FEC#FFFFFF#000000##FFFFFF
##6A5FEC1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#006EE9
Tritanopia (blue-blind)
#29819C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #6a5fec;
/* rgb */ color: rgb(106, 95, 236);
/* oklch */ color: oklch(57.5% 0.205 281.3);
Tailwind
colors: {
  custom: {
    50: '#9f8df3',
    500: '#6a5fec',
    950: '#000000',
  },
}
SCSS
$custom: #6a5fec;
$custom-light: #9f8df3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a5fec",
  "rgb": {
    "r": 106,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 244.681,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.57476,
    "c": 0.20498,
    "h": 281.3
  },
  "luminance": 0.17305
}

Semantic roles & 50–950 ramp

primary
#6A5FEC
secondary
#E8EBBB
accent
#DB0ACB
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #6A5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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