#7142FF#7142FF

#7142FF is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.6% C 0.259 H 285.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7142FF
RGBrgb(113, 66, 255)
HSLhsl(255, 100%, 63%)
HSVhsv(255, 74%, 100%)
CMYKcmyk(55.7%, 74.1%, 0%, 0%)
CIE-LABlab(45.12, 64.45, -86.40)
CIE-LCHlch(45.12, 107.79, 306.72°)
OKLaboklab(55.56% 0.0704 -0.2488)
OKLCHoklch(55.56% 0.259 285.8)
XYZxyz(26.8028, 14.6256, 95.9990)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142FF #D0FF42
analogous
#4271FF #7142FF #D042FF
triadic
#7142FF #FF7142 #42FF71
tetradic
#7142FF #FF4271 #D0FF42 #42FFD0
square
#7142FF #FF4271 #D0FF42 #42FFD0
split-complementary
#7142FF #FFD042 #71FF42
monochromatic
#3100C7 #4305FF #7142FF #9F7FFF #CDBCFF

Accessibility & contrast

On white

5.35
#7142FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7142FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142FF
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142FF#FFFFFF#000000##FFFFFF
##7142FF1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070FF
Deuteranopia (green-blind)
#0065FC
Tritanopia (blue-blind)
#2B779E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7142ff;
/* rgb */ color: rgb(113, 66, 255);
/* oklch */ color: oklch(55.6% 0.259 285.8);
Tailwind
colors: {
  custom: {
    50: '#a87cff',
    500: '#7142ff',
    950: '#000000',
  },
}
SCSS
$custom: #7142ff;
$custom-light: #a87cff;
$custom-dark: #000000;
JSON
{
  "hex": "#7142ff",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 255
  },
  "hsl": {
    "h": 254.921,
    "s": 100,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55562,
    "c": 0.25855,
    "h": 285.8
  },
  "luminance": 0.14627
}

Semantic roles & 50–950 ramp

primary
#7142FF
secondary
#DFF0AC
accent
#E600AC
background
#FBF7FF
surface
#F6EEFF
border
#D0C9D7
text
#110A18
muted
#807C86

Preview Lab

Preview with #7142FF

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

Preview Lab → · Contrast checker → · Palette generator →

#7142FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva