#6245E2#6245E2

#6245E2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.224 H 283.9°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#6245E2
RGBrgb(98, 69, 226)
HSLhsl(251, 73%, 58%)
HSVhsv(251, 69%, 89%)
CMYKcmyk(56.6%, 69.5%, 0%, 11.4%)
CIE-LABlab(41.76, 52.79, -75.64)
CIE-LCHlch(41.76, 92.24, 304.91°)
OKLaboklab(52.08% 0.0538 -0.2177)
OKLCHoklch(52.08% 0.224 283.9)
XYZxyz(20.8884, 12.3426, 73.2184)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6245E2 #C5E245
analogous
#4576E2 #6245E2 #B145E2
triadic
#6245E2 #E26245 #45E262
tetradic
#6245E2 #E24576 #C5E245 #45E2B1
square
#6245E2 #E24576 #C5E245 #45E2B1
split-complementary
#6245E2 #E2B145 #76E245
monochromatic
#2F1795 #3F20CA #6245E2 #8F7AEA #BBAFF3

Accessibility & contrast

On white

6.05
#6245E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#6245E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6245E2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6245E2#FFFFFF#000000##FFFFFF
##6245E21.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005DDF
Tritanopia (blue-blind)
#1E6F8F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6245e2;
/* rgb */ color: rgb(98, 69, 226);
/* oklch */ color: oklch(52.1% 0.224 283.9);
Tailwind
colors: {
  custom: {
    50: '#9b7bec',
    500: '#6245e2',
    950: '#000000',
  },
}
SCSS
$custom: #6245e2;
$custom-light: #9b7bec;
$custom-dark: #000000;
JSON
{
  "hex": "#6245e2",
  "rgb": {
    "r": 98,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 251.083,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.52081,
    "c": 0.22429,
    "h": 283.9
  },
  "luminance": 0.12344
}

Semantic roles & 50–950 ramp

primary
#6245E2
secondary
#D5E1A2
accent
#F038CE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6245E2

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

Preview Lab → · Contrast checker → · Palette generator →

#6245E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva