#6242BC#6242BC

#6242BC is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.182 H 290.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#6242BC
RGBrgb(98, 66, 188)
HSLhsl(256, 48%, 50%)
HSVhsv(256, 65%, 74%)
CMYKcmyk(47.9%, 64.9%, 0%, 26.3%)
CIE-LABlab(38.06, 43.39, -59.71)
CIE-LCHlch(38.06, 73.81, 306.00°)
OKLaboklab(48.47% 0.0621 -0.171)
OKLCHoklch(48.47% 0.182 290)
XYZxyz(16.0597, 10.1233, 48.6750)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242BC #9CBC42
analogous
#425FBC #6242BC #9F42BC
triadic
#6242BC #BC6242 #42BC62
tetradic
#6242BC #BC425F #9CBC42 #42BC9F
square
#6242BC #BC425F #9CBC42 #42BC9F
split-complementary
#6242BC #BC9F42 #5FBC42
monochromatic
#332261 #4A328F #6242BC #876FCC #AD9CDC

Accessibility & contrast

On white

6.94
#6242BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6242BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242BC
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242BC#FFFFFF#000000##FFFFFF
##6242BC1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#455F79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6242bc;
/* rgb */ color: rgb(98, 66, 188);
/* oklch */ color: oklch(48.5% 0.182 290.0);
Tailwind
colors: {
  custom: {
    50: '#9678d1',
    500: '#6242bc',
    950: '#000000',
  },
}
SCSS
$custom: #6242bc;
$custom-light: #9678d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6242bc",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 255.738,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.4847,
    "c": 0.18191,
    "h": 290
  },
  "luminance": 0.10124
}

Semantic roles & 50–950 ramp

primary
#6242BC
secondary
#BAC991
accent
#D850B4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6242BC

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

Preview Lab → · Contrast checker → · Palette generator →

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