#6142EA#6142EA

#6142EA is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.237 H 283.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#6142EA
RGBrgb(97, 66, 234)
HSLhsl(251, 80%, 59%)
HSVhsv(251, 72%, 92%)
CMYKcmyk(58.5%, 71.8%, 0%, 8.2%)
CIE-LABlab(41.81, 56.53, -80.10)
CIE-LCHlch(41.81, 98.04, 305.21°)
OKLaboklab(52.31% 0.0531 -0.2308)
OKLCHoklch(52.31% 0.237 283)
XYZxyz(21.7247, 12.3769, 79.0701)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142EA #CBEA42
analogous
#4277EA #6142EA #B542EA
triadic
#6142EA #EA6142 #42EA61
tetradic
#6142EA #EA4277 #CBEA42 #42EAB5
square
#6142EA #EA4277 #CBEA42 #42EAB5
split-complementary
#6142EA #EAB542 #77EA42
monochromatic
#2C12A0 #3B18D7 #6142EA #8F79F0 #BDB0F6

Accessibility & contrast

On white

6.04
#6142EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#6142EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142EA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142EA#FFFFFF#000000##FFFFFF
##6142EA1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#005DE7
Tritanopia (blue-blind)
#007092
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6142ea;
/* rgb */ color: rgb(97, 66, 234);
/* oklch */ color: oklch(52.3% 0.237 283.0);
Tailwind
colors: {
  custom: {
    50: '#9c7af2',
    500: '#6142ea',
    950: '#000000',
  },
}
SCSS
$custom: #6142ea;
$custom-light: #9c7af2;
$custom-dark: #000000;
JSON
{
  "hex": "#6142ea",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 251.071,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52312,
    "c": 0.23685,
    "h": 283
  },
  "luminance": 0.12378
}

Semantic roles & 50–950 ramp

primary
#6142EA
secondary
#D9E5A3
accent
#F631D2
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6142EA

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

Preview Lab → · Contrast checker → · Palette generator →

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