#6242BD#6242BD

#6242BD is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.5% C 0.183 H 289.8°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6242BD
RGBrgb(98, 66, 189)
HSLhsl(256, 48%, 50%)
HSVhsv(256, 65%, 74%)
CMYKcmyk(48.1%, 65.1%, 0%, 25.9%)
CIE-LABlab(38.14, 43.68, -60.17)
CIE-LCHlch(38.14, 74.36, 305.97°)
OKLaboklab(48.55% 0.062 -0.1723)
OKLCHoklch(48.55% 0.183 289.8)
XYZxyz(16.1679, 10.1666, 49.2447)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242BD #9DBD42
analogous
#425FBD #6242BD #A042BD
triadic
#6242BD #BD6242 #42BD62
tetradic
#6242BD #BD425F #9DBD42 #42BDA0
square
#6242BD #BD425F #9DBD42 #42BDA0
split-complementary
#6242BD #BDA042 #5FBD42
monochromatic
#332262 #4A3290 #6242BD #886FCD #AD9DDD

Accessibility & contrast

On white

6.92
#6242BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6242BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242BD
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242BD#FFFFFF#000000##FFFFFF
##6242BD1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#446079
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6242bd;
/* rgb */ color: rgb(98, 66, 189);
/* oklch */ color: oklch(48.5% 0.183 289.8);
Tailwind
colors: {
  custom: {
    50: '#9678d2',
    500: '#6242bd',
    950: '#000000',
  },
}
SCSS
$custom: #6242bd;
$custom-light: #9678d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6242bd",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 255.61,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.4855,
    "c": 0.18316,
    "h": 289.8
  },
  "luminance": 0.10167
}

Semantic roles & 50–950 ramp

primary
#6242BD
secondary
#BBC992
accent
#D850B4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6242BD

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

Preview Lab → · Contrast checker → · Palette generator →

#6242BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva