#6142F3#6142F3

#6142F3 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.1% C 0.247 H 282.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#6142F3
RGBrgb(97, 66, 243)
HSLhsl(251, 88%, 61%)
HSVhsv(251, 73%, 95%)
CMYKcmyk(60.1%, 72.8%, 0%, 4.7%)
CIE-LABlab(42.62, 59.12, -83.84)
CIE-LCHlch(42.62, 102.59, 305.19°)
OKLaboklab(53.14% 0.0512 -0.2417)
OKLCHoklch(53.14% 0.247 282)
XYZxyz(23.0506, 12.9073, 86.0533)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142F3 #D4F342
analogous
#427CF3 #6142F3 #B942F3
triadic
#6142F3 #F36142 #42F361
tetradic
#6142F3 #F3427C #D4F342 #42F3B9
square
#6142F3 #F3427C #D4F342 #42F3B9
split-complementary
#6142F3 #F3B942 #7CF342
monochromatic
#280BAF #350FE9 #6142F3 #917CF7 #C1B5FA

Accessibility & contrast

On white

5.86
#6142F3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#6142F3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142F3
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142F3#FFFFFF#000000##FFFFFF
##6142F31.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF8
Deuteranopia (green-blind)
#005EF0
Tritanopia (blue-blind)
#007497
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6142f3;
/* rgb */ color: rgb(97, 66, 243);
/* oklch */ color: oklch(53.1% 0.247 282.0);
Tailwind
colors: {
  custom: {
    50: '#9e7af8',
    500: '#6142f3',
    950: '#000000',
  },
}
SCSS
$custom: #6142f3;
$custom-light: #9e7af8;
$custom-dark: #000000;
JSON
{
  "hex": "#6142f3",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 243
  },
  "hsl": {
    "h": 250.508,
    "s": 88.06,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53135,
    "c": 0.2471,
    "h": 282
  },
  "luminance": 0.12909
}

Semantic roles & 50–950 ramp

primary
#6142F3
secondary
#DEEAA7
accent
#E501BD
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6142F3

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

Preview Lab → · Contrast checker → · Palette generator →

#6142F3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva