#6540FF#6540FF

#6540FF is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.3% C 0.262 H 282.2°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#6540FF
RGBrgb(101, 64, 255)
HSLhsl(252, 100%, 63%)
HSVhsv(252, 75%, 100%)
CMYKcmyk(60.4%, 74.9%, 0%, 0%)
CIE-LABlab(43.73, 63.95, -88.73)
CIE-LCHlch(43.73, 109.37, 305.78°)
OKLaboklab(54.33% 0.0551 -0.2559)
OKLCHoklch(54.33% 0.262 282.2)
XYZxyz(25.2446, 13.6517, 95.8931)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6540FF #DAFF40
analogous
#407BFF #6540FF #C440FF
triadic
#6540FF #FF6540 #40FF65
tetradic
#6540FF #FF407B #DAFF40 #40FFC4
square
#6540FF #FF407B #DAFF40 #40FFC4
split-complementary
#6540FF #FFC440 #7BFF40
monochromatic
#2600C5 #3403FF #6540FF #967DFF #C8BAFF

Accessibility & contrast

On white

5.63
#6540FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#6540FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6540FF
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6540FF#FFFFFF#000000##FFFFFF
##6540FF1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EFF
Deuteranopia (green-blind)
#0061FC
Tritanopia (blue-blind)
#00779E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #6540ff;
/* rgb */ color: rgb(101, 64, 255);
/* oklch */ color: oklch(54.3% 0.262 282.2);
Tailwind
colors: {
  custom: {
    50: '#a27aff',
    500: '#6540ff',
    950: '#000000',
  },
}
SCSS
$custom: #6540ff;
$custom-light: #a27aff;
$custom-dark: #000000;
JSON
{
  "hex": "#6540ff",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 251.623,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.5433,
    "c": 0.26176,
    "h": 282.2
  },
  "luminance": 0.13653
}

Semantic roles & 50–950 ramp

primary
#6540FF
secondary
#E3F0AB
accent
#E600B9
background
#FAF7FF
surface
#F5EEFF
border
#CFC9D7
text
#110918
muted
#807B86

Preview Lab

Preview with #6540FF

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

Preview Lab → · Contrast checker → · Palette generator →

#6540FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva