#6240CA#6240CA

#6240CA is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.201 H 288.0°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#6240CA
RGBrgb(98, 64, 202)
HSLhsl(255, 57%, 52%)
HSVhsv(255, 68%, 79%)
CMYKcmyk(51.5%, 68.3%, 0%, 20.8%)
CIE-LABlab(38.77, 48.51, -66.73)
CIE-LCHlch(38.77, 82.50, 306.02°)
OKLaboklab(49.33% 0.0622 -0.1916)
OKLCHoklch(49.33% 0.201 288)
XYZxyz(17.5279, 10.5269, 56.9740)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240CA #A8CA40
analogous
#4063CA #6240CA #A740CA
triadic
#6240CA #CA6240 #40CA62
tetradic
#6240CA #CA4063 #A8CA40 #40CAA7
square
#6240CA #CA4063 #A8CA40 #40CAA7
split-complementary
#6240CA #CAA740 #63CA40
monochromatic
#331F70 #492CA0 #6240CA #8970D7 #B1A0E5

Accessibility & contrast

On white

6.76
#6240CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6240CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240CA
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240CA#FFFFFF#000000##FFFFFF
##6240CA1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#3B6380
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6240ca;
/* rgb */ color: rgb(98, 64, 202);
/* oklch */ color: oklch(49.3% 0.201 288.0);
Tailwind
colors: {
  custom: {
    50: '#9877db',
    500: '#6240ca',
    950: '#000000',
  },
}
SCSS
$custom: #6240ca;
$custom-light: #9877db;
$custom-dark: #000000;
JSON
{
  "hex": "#6240ca",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 254.783,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49327,
    "c": 0.20142,
    "h": 288
  },
  "luminance": 0.10528
}

Semantic roles & 50–950 ramp

primary
#6240CA
secondary
#C2D195
accent
#E048BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6240CA

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

Preview Lab → · Contrast checker → · Palette generator →

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