#6240CD#6240CD

#6240CD is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.6% C 0.205 H 287.5°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#6240CD
RGBrgb(98, 64, 205)
HSLhsl(254, 59%, 53%)
HSVhsv(254, 69%, 80%)
CMYKcmyk(52.2%, 68.8%, 0%, 19.6%)
CIE-LABlab(39.02, 49.37, -68.06)
CIE-LCHlch(39.02, 84.09, 305.96°)
OKLaboklab(49.58% 0.0617 -0.1955)
OKLCHoklch(49.58% 0.205 287.5)
XYZxyz(17.8866, 10.6704, 58.8629)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240CD #ABCD40
analogous
#4065CD #6240CD #A840CD
triadic
#6240CD #CD6240 #40CD62
tetradic
#6240CD #CD4065 #ABCD40 #40CDA8
square
#6240CD #CD4065 #ABCD40 #40CDA8
split-complementary
#6240CD #CDA840 #65CD40
monochromatic
#331E74 #482BA5 #6240CD #8A71DA #B2A1E6

Accessibility & contrast

On white

6.70
#6240CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6240CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240CD
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240CD#FFFFFF#000000##FFFFFF
##6240CD1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#396482
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6240cd;
/* rgb */ color: rgb(98, 64, 205);
/* oklch */ color: oklch(49.6% 0.205 287.5);
Tailwind
colors: {
  custom: {
    50: '#9877dd',
    500: '#6240cd',
    950: '#000000',
  },
}
SCSS
$custom: #6240cd;
$custom-light: #9877dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6240cd",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 254.468,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49581,
    "c": 0.205,
    "h": 287.5
  },
  "luminance": 0.10671
}

Semantic roles & 50–950 ramp

primary
#6240CD
secondary
#C4D396
accent
#E246BC
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6240CD

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

Preview Lab → · Contrast checker → · Palette generator →

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