#7242C2#7242C2

#7242C2 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.5% C 0.190 H 296.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7242C2
RGBrgb(114, 66, 194)
HSLhsl(263, 51%, 51%)
HSVhsv(263, 66%, 76%)
CMYKcmyk(41.2%, 66%, 0%, 23.9%)
CIE-LABlab(40.19, 48.19, -59.69)
CIE-LCHlch(40.19, 76.71, 308.92°)
OKLaboklab(50.54% 0.0836 -0.1704)
OKLCHoklch(50.54% 0.19 296.1)
XYZxyz(18.6227, 11.3685, 52.2416)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242C2 #92C242
analogous
#4252C2 #7242C2 #B242C2
triadic
#7242C2 #C27242 #42C272
tetradic
#7242C2 #C24252 #92C242 #42C2B2
square
#7242C2 #C24252 #92C242 #42C2B2
split-complementary
#7242C2 #C2B242 #52C242
monochromatic
#3C2268 #573196 #7242C2 #9570D1 #B79FE0

Accessibility & contrast

On white

6.41
#7242C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7242C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242C2
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242C2#FFFFFF#000000##FFFFFF
##7242C21.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#5D607C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7242c2;
/* rgb */ color: rgb(114, 66, 194);
/* oklch */ color: oklch(50.5% 0.190 296.1);
Tailwind
colors: {
  custom: {
    50: '#a179d5',
    500: '#7242c2',
    950: '#000000',
  },
}
SCSS
$custom: #7242c2;
$custom-light: #a179d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7242c2",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 262.5,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50541,
    "c": 0.18977,
    "h": 296.1
  },
  "luminance": 0.11369
}

Semantic roles & 50–950 ramp

primary
#7242C2
secondary
#B7CC94
accent
#DB4DA6
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7242C2

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

Preview Lab → · Contrast checker → · Palette generator →

#7242C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva