#6240E3#6240E3

#6240E3 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.231 H 284.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#6240E3
RGBrgb(98, 64, 227)
HSLhsl(253, 74%, 57%)
HSVhsv(253, 72%, 89%)
CMYKcmyk(56.8%, 71.8%, 0%, 11%)
CIE-LABlab(40.91, 55.68, -77.60)
CIE-LCHlch(40.91, 95.51, 305.66°)
OKLaboklab(51.51% 0.0574 -0.2234)
OKLCHoklch(51.51% 0.231 284.4)
XYZxyz(20.7313, 11.8082, 73.8450)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240E3 #C1E340
analogous
#4070E3 #6240E3 #B340E3
triadic
#6240E3 #E36240 #40E362
tetradic
#6240E3 #E34070 #C1E340 #40E3B3
square
#6240E3 #E34070 #C1E340 #40E3B3
split-complementary
#6240E3 #E3B340 #70E340
monochromatic
#301693 #411DC8 #6240E3 #8E75EB #BAABF3

Accessibility & contrast

On white

6.25
#6240E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6240E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240E3
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240E3#FFFFFF#000000##FFFFFF
##6240E31.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E8
Deuteranopia (green-blind)
#005BE0
Tritanopia (blue-blind)
#1D6D8E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6240e3;
/* rgb */ color: rgb(98, 64, 227);
/* oklch */ color: oklch(51.5% 0.231 284.4);
Tailwind
colors: {
  custom: {
    50: '#9c78ed',
    500: '#6240e3',
    950: '#000000',
  },
}
SCSS
$custom: #6240e3;
$custom-light: #9c78ed;
$custom-dark: #000000;
JSON
{
  "hex": "#6240e3",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 252.515,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51506,
    "c": 0.23071,
    "h": 284.4
  },
  "luminance": 0.1181
}

Semantic roles & 50–950 ramp

primary
#6240E3
secondary
#D3E19E
accent
#F137CA
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6240E3

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

Preview Lab → · Contrast checker → · Palette generator →

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