#6245D7#6245D7

#6245D7 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.1% C 0.211 H 285.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6245D7
RGBrgb(98, 69, 215)
HSLhsl(252, 65%, 56%)
HSVhsv(252, 68%, 84%)
CMYKcmyk(54.4%, 67.9%, 0%, 15.7%)
CIE-LABlab(40.83, 49.58, -70.87)
CIE-LCHlch(40.83, 86.49, 304.97°)
OKLaboklab(51.13% 0.0556 -0.2038)
OKLCHoklch(51.13% 0.211 285.3)
XYZxyz(19.4272, 11.7581, 65.5227)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6245D7 #BAD745
analogous
#4571D7 #6245D7 #AB45D7
triadic
#6245D7 #D76245 #45D762
tetradic
#6245D7 #D74571 #BAD745 #45D7AB
square
#6245D7 #D74571 #BAD745 #45D7AB
split-complementary
#6245D7 #D7AB45 #71D745
monochromatic
#311D85 #4427B7 #6245D7 #8D77E2 #B7AAED

Accessibility & contrast

On white

6.27
#6245D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6245D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6245D7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6245D7#FFFFFF#000000##FFFFFF
##6245D71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#005CD4
Tritanopia (blue-blind)
#2E6B89
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6245d7;
/* rgb */ color: rgb(98, 69, 215);
/* oklch */ color: oklch(51.1% 0.211 285.3);
Tailwind
colors: {
  custom: {
    50: '#997be4',
    500: '#6245d7',
    950: '#000000',
  },
}
SCSS
$custom: #6245d7;
$custom-light: #997be4;
$custom-dark: #000000;
JSON
{
  "hex": "#6245d7",
  "rgb": {
    "r": 98,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 251.918,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51133,
    "c": 0.21122,
    "h": 285.3
  },
  "luminance": 0.11759
}

Semantic roles & 50–950 ramp

primary
#6245D7
secondary
#CEDA9E
accent
#E840C6
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6245D7

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

Preview Lab → · Contrast checker → · Palette generator →

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