#6A5FEF#6A5FEF

#6A5FEF is a mid, highly saturated blue. Relative luminance 0.175; OKLCH L 57.7% C 0.209 H 281.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#6A5FEF
RGBrgb(106, 95, 239)
HSLhsl(245, 82%, 65%)
HSVhsv(245, 60%, 94%)
CMYKcmyk(55.6%, 60.3%, 0%, 6.3%)
CIE-LABlab(48.86, 43.39, -71.36)
CIE-LCHlch(48.86, 83.52, 301.30°)
OKLaboklab(57.71% 0.04 -0.2049)
OKLCHoklch(57.71% 0.209 281.1)
XYZxyz(25.6112, 17.4789, 83.6688)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A5FEF #E4EF5F
analogous
#5F9CEF #6A5FEF #B25FEF
triadic
#6A5FEF #EF6A5F #5FEF6A
tetradic
#6A5FEF #EF5F9C #E4EF5F #5FEFB2
square
#6A5FEF #EF5F9C #E4EF5F #5FEFB2
split-complementary
#6A5FEF #EFB25F #9CEF5F
monochromatic
#2013C0 #3627E9 #6A5FEF #9E97F5 #D2CEFA

Accessibility & contrast

On white

4.67
#6A5FEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#6A5FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #6A5FEF
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A5FEF#FFFFFF#000000##FFFFFF
##6A5FEF1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F4
Deuteranopia (green-blind)
#006FEC
Tritanopia (blue-blind)
#24829E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #6a5fef;
/* rgb */ color: rgb(106, 95, 239);
/* oklch */ color: oklch(57.7% 0.209 281.1);
Tailwind
colors: {
  custom: {
    50: '#a08df5',
    500: '#6a5fef',
    950: '#000000',
  },
}
SCSS
$custom: #6a5fef;
$custom-light: #a08df5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a5fef",
  "rgb": {
    "r": 106,
    "g": 95,
    "b": 239
  },
  "hsl": {
    "h": 244.583,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.57705,
    "c": 0.20879,
    "h": 281.1
  },
  "luminance": 0.17481
}

Semantic roles & 50–950 ramp

primary
#6A5FEF
secondary
#E9EDBD
accent
#DE07CE
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #6A5FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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