#6240BD#6240BD

#6240BD is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.3% C 0.186 H 290.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#6240BD
RGBrgb(98, 64, 189)
HSLhsl(256, 49%, 50%)
HSVhsv(256, 66%, 74%)
CMYKcmyk(48.1%, 66.1%, 0%, 25.9%)
CIE-LABlab(37.73, 44.79, -60.84)
CIE-LCHlch(37.73, 75.55, 306.36°)
OKLaboklab(48.25% 0.0641 -0.1743)
OKLCHoklch(48.25% 0.186 290.2)
XYZxyz(16.0531, 9.9370, 49.2064)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240BD #9BBD40
analogous
#405DBD #6240BD #A140BD
triadic
#6240BD #BD6240 #40BD62
tetradic
#6240BD #BD405D #9BBD40 #40BDA1
square
#6240BD #BD405D #9BBD40 #40BDA1
split-complementary
#6240BD #BDA140 #5DBD40
monochromatic
#332162 #4A318F #6240BD #876DCD #AD9ADD

Accessibility & contrast

On white

7.03
#6240BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6240BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6240BD
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240BD#FFFFFF#000000##FFFFFF
##6240BD1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#445F79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6240bd;
/* rgb */ color: rgb(98, 64, 189);
/* oklch */ color: oklch(48.3% 0.186 290.2);
Tailwind
colors: {
  custom: {
    50: '#9677d2',
    500: '#6240bd',
    950: '#000000',
  },
}
SCSS
$custom: #6240bd;
$custom-light: #9677d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6240bd",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 256.32,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48254,
    "c": 0.1857,
    "h": 290.2
  },
  "luminance": 0.09938
}

Semantic roles & 50–950 ramp

primary
#6240BD
secondary
#B9C990
accent
#D94FB3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6240BD

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

Preview Lab → · Contrast checker → · Palette generator →

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