#6245D8#6245D8

#6245D8 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.2% C 0.212 H 285.1°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#6245D8
RGBrgb(98, 69, 216)
HSLhsl(252, 65%, 56%)
HSVhsv(252, 68%, 85%)
CMYKcmyk(54.6%, 68.1%, 0%, 15.3%)
CIE-LABlab(40.91, 49.87, -71.31)
CIE-LCHlch(40.91, 87.02, 304.97°)
OKLaboklab(51.22% 0.0555 -0.205)
OKLCHoklch(51.22% 0.212 285.1)
XYZxyz(19.5560, 11.8097, 66.2015)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6245D8 #BBD845
analogous
#4571D8 #6245D8 #AB45D8
triadic
#6245D8 #D86245 #45D862
tetradic
#6245D8 #D84571 #BBD845 #45D8AB
square
#6245D8 #D84571 #BBD845 #45D8AB
split-complementary
#6245D8 #D8AB45 #71D845
monochromatic
#311C86 #4427B9 #6245D8 #8D78E3 #B7AAED

Accessibility & contrast

On white

6.25
#6245D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6245D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6245D8
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6245D8#FFFFFF#000000##FFFFFF
##6245D81.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)
#0065DC
Deuteranopia (green-blind)
#005CD5
Tritanopia (blue-blind)
#2D6B89
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6245d8;
/* rgb */ color: rgb(98, 69, 216);
/* oklch */ color: oklch(51.2% 0.212 285.1);
Tailwind
colors: {
  custom: {
    50: '#9a7be5',
    500: '#6245d8',
    950: '#000000',
  },
}
SCSS
$custom: #6245d8;
$custom-light: #9a7be5;
$custom-dark: #000000;
JSON
{
  "hex": "#6245d8",
  "rgb": {
    "r": 98,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 251.837,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51218,
    "c": 0.21241,
    "h": 285.1
  },
  "luminance": 0.11811
}

Semantic roles & 50–950 ramp

primary
#6245D8
secondary
#CFDB9E
accent
#E840C7
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6245D8

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

Preview Lab → · Contrast checker → · Palette generator →

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