#6240CF#6240CF

#6240CF is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.207 H 287.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#6240CF
RGBrgb(98, 64, 207)
HSLhsl(254, 60%, 53%)
HSVhsv(254, 69%, 81%)
CMYKcmyk(52.7%, 69.1%, 0%, 18.8%)
CIE-LABlab(39.19, 49.95, -68.95)
CIE-LCHlch(39.19, 85.14, 305.92°)
OKLaboklab(49.75% 0.0613 -0.1981)
OKLCHoklch(49.75% 0.207 287.2)
XYZxyz(18.1296, 10.7675, 60.1424)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240CF #ADCF40
analogous
#4065CF #6240CF #AA40CF
triadic
#6240CF #CF6240 #40CF62
tetradic
#6240CF #CF4065 #ADCF40 #40CFAA
square
#6240CF #CF4065 #ADCF40 #40CFAA
split-complementary
#6240CF #CFAA40 #65CF40
monochromatic
#331E77 #482AA8 #6240CF #8A71DB #B2A2E8

Accessibility & contrast

On white

6.66
#6240CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6240CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240CF
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240CF#FFFFFF#000000##FFFFFF
##6240CF1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0058CC
Tritanopia (blue-blind)
#376583
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6240cf;
/* rgb */ color: rgb(98, 64, 207);
/* oklch */ color: oklch(49.8% 0.207 287.2);
Tailwind
colors: {
  custom: {
    50: '#9977df',
    500: '#6240cf',
    950: '#000000',
  },
}
SCSS
$custom: #6240cf;
$custom-light: #9977df;
$custom-dark: #000000;
JSON
{
  "hex": "#6240cf",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 254.266,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49752,
    "c": 0.20738,
    "h": 287.2
  },
  "luminance": 0.10768
}

Semantic roles & 50–950 ramp

primary
#6240CF
secondary
#C6D497
accent
#E345BD
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6240CF

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

Preview Lab → · Contrast checker → · Palette generator →

#6240CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva