#6241EA#6241EA

#6241EA is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.3% C 0.238 H 283.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#6241EA
RGBrgb(98, 65, 234)
HSLhsl(252, 80%, 59%)
HSVhsv(252, 72%, 92%)
CMYKcmyk(58.1%, 72.2%, 0%, 8.2%)
CIE-LABlab(41.71, 57.17, -80.25)
CIE-LCHlch(41.71, 98.53, 305.47°)
OKLaboklab(52.27% 0.0552 -0.2312)
OKLCHoklch(52.27% 0.238 283.4)
XYZxyz(21.7740, 12.3164, 79.0559)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6241EA #C9EA41
analogous
#4174EA #6241EA #B641EA
triadic
#6241EA #EA6241 #41EA62
tetradic
#6241EA #EA4174 #C9EA41 #41EAB6
square
#6241EA #EA4174 #C9EA41 #41EAB6
split-complementary
#6241EA #EAB641 #74EA41
monochromatic
#2D129F #3D18D6 #6241EA #9078F0 #BDAFF6

Accessibility & contrast

On white

6.06
#6241EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#6241EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6241EA
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6241EA#FFFFFF#000000##FFFFFF
##6241EA1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#005DE7
Tritanopia (blue-blind)
#077092
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6241ea;
/* rgb */ color: rgb(98, 65, 234);
/* oklch */ color: oklch(52.3% 0.238 283.4);
Tailwind
colors: {
  custom: {
    50: '#9d79f2',
    500: '#6241ea',
    950: '#000000',
  },
}
SCSS
$custom: #6241ea;
$custom-light: #9d79f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6241ea",
  "rgb": {
    "r": 98,
    "g": 65,
    "b": 234
  },
  "hsl": {
    "h": 251.716,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52266,
    "c": 0.23772,
    "h": 283.4
  },
  "luminance": 0.12318
}

Semantic roles & 50–950 ramp

primary
#6241EA
secondary
#D8E5A2
accent
#F731D0
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6241EA

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

Preview Lab → · Contrast checker → · Palette generator →

#6241EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva