#6640F1#6640F1

#6640F1 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.1% C 0.246 H 284.1°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#6640F1
RGBrgb(102, 64, 241)
HSLhsl(253, 86%, 60%)
HSVhsv(253, 73%, 95%)
CMYKcmyk(57.7%, 73.4%, 0%, 5.5%)
CIE-LABlab(42.52, 60.16, -82.86)
CIE-LCHlch(42.52, 102.40, 305.98°)
OKLaboklab(53.11% 0.0599 -0.2387)
OKLCHoklch(53.11% 0.246 284.1)
XYZxyz(23.1852, 12.8410, 84.4589)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640F1 #CBF140
analogous
#4073F1 #6640F1 #BE40F1
triadic
#6640F1 #F16640 #40F166
tetradic
#6640F1 #F14073 #CBF140 #40F1BE
square
#6640F1 #F14073 #CBF140 #40F1BE
split-complementary
#6640F1 #F1BE40 #73F140
monochromatic
#2E0CAA #3E11E3 #6640F1 #9479F5 #C1B2F9

Accessibility & contrast

On white

5.88
#6640F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#6640F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640F1
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640F1#FFFFFF#000000##FFFFFF
##6640F11.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF6
Deuteranopia (green-blind)
#005FEE
Tritanopia (blue-blind)
#117296
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6640f1;
/* rgb */ color: rgb(102, 64, 241);
/* oklch */ color: oklch(53.1% 0.246 284.1);
Tailwind
colors: {
  custom: {
    50: '#a079f7',
    500: '#6640f1',
    950: '#000000',
  },
}
SCSS
$custom: #6640f1;
$custom-light: #a079f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6640f1",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 241
  },
  "hsl": {
    "h": 252.881,
    "s": 86.341,
    "l": 59.804
  },
  "oklch": {
    "l": 0.53114,
    "c": 0.24612,
    "h": 284.1
  },
  "luminance": 0.12842
}

Semantic roles & 50–950 ramp

primary
#6640F1
secondary
#DAE9A4
accent
#FD2BD0
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6640F1

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

Preview Lab → · Contrast checker → · Palette generator →

#6640F1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva