#6245BA#6245BA

#6245BA is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.175 H 289.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#6245BA
RGBrgb(98, 69, 186)
HSLhsl(255, 46%, 50%)
HSVhsv(255, 63%, 73%)
CMYKcmyk(47.3%, 62.9%, 0%, 27.1%)
CIE-LABlab(38.55, 41.11, -57.75)
CIE-LCHlch(38.55, 70.89, 305.44°)
OKLaboklab(48.77% 0.0592 -0.1652)
OKLCHoklch(48.77% 0.175 289.7)
XYZxyz(16.0255, 10.3975, 47.6074)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6245BA #9DBA45
analogous
#4562BA #6245BA #9D45BA
triadic
#6245BA #BA6245 #45BA62
tetradic
#6245BA #BA4562 #9DBA45 #45BA9D
square
#6245BA #BA4562 #9DBA45 #45BA9D
split-complementary
#6245BA #BA9D45 #62BA45
monochromatic
#332461 #4A348D #6245BA #8872CB #AD9EDB

Accessibility & contrast

On white

6.82
#6245BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6245BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6245BA
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6245BA#FFFFFF#000000##FFFFFF
##6245BA1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#466179
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6245ba;
/* rgb */ color: rgb(98, 69, 186);
/* oklch */ color: oklch(48.8% 0.175 289.7);
Tailwind
colors: {
  custom: {
    50: '#957ad0',
    500: '#6245ba',
    950: '#000000',
  },
}
SCSS
$custom: #6245ba;
$custom-light: #957ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#6245ba",
  "rgb": {
    "r": 98,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 254.872,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.48773,
    "c": 0.17548,
    "h": 289.7
  },
  "luminance": 0.10398
}

Semantic roles & 50–950 ramp

primary
#6245BA
secondary
#BBC893
accent
#D652B5
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6245BA

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

Preview Lab → · Contrast checker → · Palette generator →

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